Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,93 @@
|
||||
/* Metro module 11486; source: modules/safety_hub/AutomatedUnderageAppealModalActionCreators.native.tsx; dependencies: [5, 5267, 5262, 33, 694, 4080, 11487, 1962, 5080, 5470, 5074, 11480, 2] */
|
||||
function _fun87996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:6, offset: 0x01fd0b28, size: 252 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const safetyHubConstantsModule = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_4 = safetyHubConstantsModule.AGE_APPEAL_ACTION_SHEET_NAME;
|
||||
const env0_5 = safetyHubConstantsModule.AGE_CHECK_POLL_DELAY_MS;
|
||||
const env0_6 = (require(5262) /* metro dependency 5262: AgeVerificationConstants */).AGE_VERIFICATION_GET_STARTED_MODAL_KEY;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object2 = {open: open_87997, openV2: openV2, close: close_88003, success: success,
|
||||
start_verification_check: function() {
|
||||
importDefault(dependencyMap[4]).dispatch({type: 'SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_START_POLL'});
|
||||
global.setTimeout(_fun88006, AGE_CHECK_POLL_DELAY_MS);
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/AutomatedUnderageAppealModalActionCreators.native.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function open_87997(a0, a1) { // fn#87997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:247, offset: 0x01fd0c24, size: 130 bytes, params: 3, frame: 18
|
||||
importDefault(dependencyMap[4]).dispatch({type: 'SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_OPEN'});
|
||||
const defaultImport2 = importDefault(dependencyMap[5]);
|
||||
defaultImport2.openLazy(require(dependencyMap[7])(dependencyMap[6], dependencyMap.paths),
|
||||
AGE_APPEAL_ACTION_SHEET_NAME, {classificationId: a0, onClose: a1});
|
||||
}
|
||||
|
||||
function openV2(a0, a1) { // fn#87998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:406, offset: 0x01fd0ca6, size: 117 bytes, params: 3, frame: 20
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_OPEN'});
|
||||
const defaultImport2 = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
|
||||
defaultImport2.pushLazy(env0_3(_fun88000), {onClose: a1}, AGE_VERIFICATION_GET_STARTED_MODAL_KEY);
|
||||
}
|
||||
|
||||
function close_88003() { // fn#88003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:843, offset: 0x01fd0e1e, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_CLOSE'});
|
||||
}
|
||||
|
||||
function success() { // fn#88004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:928, offset: 0x01fd0e4f, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_SUBMIT_SUCCESS'});
|
||||
}
|
||||
|
||||
function start_verification_check() { // fn#88005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:1018, offset: 0x01fd0e80, size: 76 bytes, params: 1, frame: 15
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_START_POLL'});
|
||||
global.setTimeout(_fun88006, AGE_CHECK_POLL_DELAY_MS);
|
||||
}
|
||||
|
||||
function* _fun88000() { // fn#88000, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:513, offset: 0x01fd0d26, size: 91 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const binding = env2_0;
|
||||
const binding2 = env2_2;
|
||||
yield binding(binding2[7])(binding2[9], binding2.paths);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
const env0_0 = value.default;
|
||||
return _fun88001;
|
||||
}
|
||||
|
||||
function _fun88006() { // fn#88006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:1132, offset: 0x01fd0ecc, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(11480) /* metro dependency 11480: SafetyHubActionCreators */).checkSuspendedUserAgeVerification();
|
||||
}
|
||||
|
||||
function _fun88001() { // fn#88001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:575, offset: 0x01fd0d81, size: 103 bytes, params: 1, frame: 15
|
||||
const binding = env3_7;
|
||||
const binding2 = env0_0;
|
||||
const object2 = {};
|
||||
object2.classificationId = require;
|
||||
const AgeVerificationModalEntryPoint = env3_0(env3_2[10]).AgeVerificationModalEntryPoint;
|
||||
const AUTOMATED_UNDERAGE_APPEALS = AgeVerificationModalEntryPoint.AUTOMATED_UNDERAGE_APPEALS;
|
||||
object2.entryPoint = AUTOMATED_UNDERAGE_APPEALS;
|
||||
object2.isRetry = false;
|
||||
object2.useEmbeddedMethods = true;
|
||||
object2.onComplete = onComplete_88002;
|
||||
return binding(binding2, object2);
|
||||
}
|
||||
|
||||
function onComplete_88002() { // fn#88002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11672:725, offset: 0x01fd0de8, size: 54 bytes, params: 1, frame: 11
|
||||
env4_8.success();
|
||||
if (importDefault != null) {
|
||||
importDefault();
|
||||
}
|
||||
env4_8.start_verification_check();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,309 @@
|
||||
/* Metro module 11480; source: modules/safety_hub/SafetyHubActionCreators.tsx; dependencies: [5, 1226, 11473, 5267, 661, 694, 507, 4631, 5266, 2] */
|
||||
function _fun87925(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:6, offset: 0x01fceec9, size: 326 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = function() {
|
||||
return _checkSuspendedUserAgeVerification.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
const safetyHubConstantsModule = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_6 = safetyHubConstantsModule.AGE_CHECK_POLL_INTERVAL_MS;
|
||||
const env0_7 = safetyHubConstantsModule.AGE_CHECK_MAX_POLL_ATTEMPTS;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/SafetyHubActionCreators.tsx');
|
||||
exports.getSafetyHubData = function() {
|
||||
return _getSafetyHubData.apply(this, arguments);
|
||||
};
|
||||
exports.getSafetyHubDataForClassification = function() {
|
||||
return _getSafetyHubDataForClassification.apply(this, arguments);
|
||||
};
|
||||
exports.requestReview = function() {
|
||||
return _requestReview.apply(this, arguments);
|
||||
};
|
||||
exports.requestSuspendedUserAgeVerification = function() {
|
||||
return _requestSuspendedUserAgeVerification.apply(this, arguments);
|
||||
};
|
||||
exports.checkSuspendedUserAgeVerification = closure;
|
||||
}
|
||||
|
||||
function _getSafetyHubData() { // fn#87926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:219, offset: 0x01fcf00f, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun87928).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _getSafetyHubDataForClassification() { // fn#87932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:1133, offset: 0x01fcf284, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun87934).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _setClassificationFlaggedContent(a0) { // fn#87938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:2199, offset: 0x01fcf51e, size: 136 bytes, params: 2, frame: 13
|
||||
var property;
|
||||
var value;
|
||||
if (a0.flagged_content != null) {
|
||||
if (a0.flagged_content.length > 0) {
|
||||
property = a0.flagged_content[0];
|
||||
property.attachments = property.attachments.filter(_fun87939);
|
||||
value = require(5266) /* metro dependency 5266: SafetyHubUtils */;
|
||||
a0.flagged_content = value.isFlaggedContentEmpty(property) ? [] : [property];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _requestReview() { // fn#87940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:2487, offset: 0x01fcf5f4, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun87942).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _requestSuspendedUserAgeVerification() { // fn#87945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:3195, offset: 0x01fcf815, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun87947).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _checkSuspendedUserAgeVerification() { // fn#87951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:4089, offset: 0x01fcf9cf, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun87953).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun87928() { // fn#87928, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:276, offset: 0x01fcf04c, size: 267 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var r5;
|
||||
var HTTP;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
env2_1(env2_2[5]).dispatch({type: 'SAFETY_HUB_FETCH_START'});
|
||||
var suspendedUserToken = env2_4.getSuspendedUserToken();
|
||||
var r7 = suspendedUserToken != null ? env2_8.SAFETY_HUB_SUSPENDED : env2_8.SAFETY_HUB;
|
||||
if (suspendedUserToken != null) {
|
||||
r5 = env2_0(env2_2[6]).HTTP.post({url: r7, body: {token: suspendedUserToken}, rejectWithError: false});
|
||||
} else {
|
||||
HTTP = env2_0(env2_2[6]).HTTP;
|
||||
r5 = HTTP.get({url: r7, rejectWithError: false});
|
||||
}
|
||||
yield r5.then(_fun87929).catch(_fun87931);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun87934(a0) { // fn#87934, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:1224, offset: 0x01fcf2c1, size: 279 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
var r5;
|
||||
var HTTP;
|
||||
if (true) {
|
||||
var env0_0 = a0;
|
||||
value = environment.__proto__.__proto__;
|
||||
env2_1(env2_2[5]).dispatch({type: 'SAFETY_HUB_FETCH_CLASSIFICATION_START', classificationId: a0});
|
||||
var suspendedUserToken = env2_4.getSuspendedUserToken();
|
||||
var r7 = suspendedUserToken != null ? env2_8.SAFETY_HUB_SUSPENDED : env2_8.SAFETY_HUB;
|
||||
if (suspendedUserToken != null) {
|
||||
r5 = env2_0(env2_2[6]).HTTP.post({url: r7, body: {token: suspendedUserToken}, rejectWithError: false});
|
||||
} else {
|
||||
HTTP = env2_0(env2_2[6]).HTTP;
|
||||
r5 = HTTP.get({url: r7, rejectWithError: false});
|
||||
}
|
||||
yield r5.then(_fun87935).catch(_fun87937);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87939({filename}) { // fn#87939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:2363, offset: 0x01fcf5a6, size: 78 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
const isImageFile2 = (require(4631) /* metro dependency 4631: MediaFormatTesters */).isImageFile(filename);
|
||||
if (isImageFile2) {
|
||||
r0 = isImageFile2;
|
||||
} else {
|
||||
value = require(4631) /* metro dependency 4631: MediaFormatTesters */;
|
||||
value = value.isVideoFile(filename);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun87942(a0, a1, a2) { // fn#87942, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:2538, offset: 0x01fcf631, size: 321 bytes, params: 4, frame: 20
|
||||
var environment;
|
||||
var r7;
|
||||
var r5;
|
||||
if (true) {
|
||||
var env0_0 = a0;
|
||||
value = environment.__proto__.__proto__;
|
||||
var suspendedUserToken = env2_4.getSuspendedUserToken();
|
||||
r7 = suspendedUserToken != null ? env2_8.SAFETY_HUB_REQUEST_SUSPENDED_USER_REVIEW(a0) : env2_8.SAFETY_HUB_REQUEST_REVIEW(a0);
|
||||
r5 = suspendedUserToken != null ? env2_0(env2_2[6]).HTTP.put({url: r7, body: {signal: a1, user_input: a2,
|
||||
token: suspendedUserToken}, rejectWithError: false}) : env2_0(env2_2[6]).HTTP.put({url: r7,
|
||||
body: {signal: a1,
|
||||
user_input: a2}, rejectWithError: false});
|
||||
env2_1(env2_2[5]).dispatch({type: 'SAFETY_HUB_REQUEST_REVIEW_START'});
|
||||
yield r5.then(_fun87943).catch(_fun87944);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun87947(a0) { // fn#87947, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:3290, offset: 0x01fcf852, size: 200 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var binding2 = env2_2;
|
||||
binding(binding2[5]).dispatch({type: 'SAFETY_HUB_REQUEST_AUTOMATED_UNDERAGE_APPEAL_START'});
|
||||
var suspendedUserToken = env2_4.getSuspendedUserToken();
|
||||
var SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION = env2_8.SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION;
|
||||
var HTTP = env2_0(binding2[6]).HTTP;
|
||||
value = HTTP.post({url: SAFETY_HUB_REQUEST_SUSPENDED_AGE_VERIFICATION, body: {token: suspendedUserToken,
|
||||
from_classification_id: a0}, rejectWithError: false});
|
||||
value = value.then(_fun87948);
|
||||
yield value.catch(_fun87949);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun87953() { // fn#87953, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:4180, offset: 0x01fcfa0c, size: 216 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
if (true) {
|
||||
var env0_0;
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var binding2 = env2_2;
|
||||
binding(binding2[5]).dispatch({type: 'SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_START'});
|
||||
var suspendedUserToken = env2_4.getSuspendedUserToken();
|
||||
env0_0 = env2_5.getAgeCheckAttempts();
|
||||
var SAFETY_HUB_CHECK_SUSPENDED_AGE_VERIFICATION = env2_8.SAFETY_HUB_CHECK_SUSPENDED_AGE_VERIFICATION;
|
||||
var HTTP = env2_0(binding2[6]).HTTP;
|
||||
value = HTTP.post({url: SAFETY_HUB_CHECK_SUSPENDED_AGE_VERIFICATION, body: {token: suspendedUserToken},
|
||||
rejectWithError: false});
|
||||
value = value.then(_fun87954);
|
||||
yield value.catch(_fun87956);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87929({body}) { // fn#87929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:546, offset: 0x01fcf157, size: 180 bytes, params: 2, frame: 22
|
||||
const classifications = body.classifications;
|
||||
const guild_classifications = body.guild_classifications;
|
||||
const account_standing = body.account_standing;
|
||||
const is_dsa_eligible = body.is_dsa_eligible;
|
||||
const username = body.username;
|
||||
const is_appeal_eligible = body.is_appeal_eligible;
|
||||
const appeal_eligibility = body.appeal_eligibility;
|
||||
const value = classifications.map(_fun87930);
|
||||
env3_1(env3_2[5]).dispatch({type: 'SAFETY_HUB_FETCH_SUCCESS',
|
||||
classifications: value.concat(guild_classifications ?? []), accountStanding: account_standing,
|
||||
isDsaEligible: is_dsa_eligible, username: username, isAppealEligible: is_appeal_eligible,
|
||||
appealEligibility: appeal_eligibility ?? []});
|
||||
}
|
||||
|
||||
function _fun87931(a0) { // fn#87931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:963, offset: 0x01fcf21e, size: 102 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_1;
|
||||
value = undefined;
|
||||
const value2 = binding(env3_2[5]);
|
||||
value2.dispatch({type: 'SAFETY_HUB_FETCH_FAILURE',
|
||||
error: (a0 == null || a0.body == null ? value : a0.body.message) ?? 'Unknown error'});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun87935({body}) { // fn#87935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:1529, offset: 0x01fcf3d8, size: 212 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
var value3;
|
||||
var value4;
|
||||
const classifications = body.classifications;
|
||||
const account_standing = body.account_standing;
|
||||
const is_dsa_eligible = body.is_dsa_eligible;
|
||||
const username = body.username;
|
||||
const is_appeal_eligible = body.is_appeal_eligible;
|
||||
let value = classifications.find(_fun87936);
|
||||
if (value != null) {
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
env3_11(value);
|
||||
value4 = env3_1(env3_2[5]);
|
||||
value4.dispatch({type: 'SAFETY_HUB_FETCH_CLASSIFICATION_SUCCESS', classification: value,
|
||||
accountStanding: account_standing, isDsaEligible: is_dsa_eligible, username: username,
|
||||
isAppealEligible: is_appeal_eligible});
|
||||
} else {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = env3_1(env3_2[5]);
|
||||
value.dispatch({'type': 'SAFETY_HUB_FETCH_CLASSIFICATION_FAILURE', 'error': 'Classification not found.',
|
||||
classificationId: env0_0});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87937(a0) { // fn#87937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:1995, offset: 0x01fcf4ac, size: 114 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_1;
|
||||
value = undefined;
|
||||
const value2 = binding(env3_2[5]);
|
||||
value2.dispatch({type: 'SAFETY_HUB_FETCH_CLASSIFICATION_FAILURE',
|
||||
error: (a0 == null || a0.body == null ? value : a0.body.message) ?? 'Unknown error', classificationId: env0_0});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun87943() { // fn#87943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:2913, offset: 0x01fcf772, size: 61 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
env3_1(env3_2[5]).dispatch({type: 'SAFETY_HUB_REQUEST_REVIEW_SUCCESS', classificationId: env0_0});
|
||||
}
|
||||
|
||||
function _fun87944(a0) { // fn#87944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:3008, offset: 0x01fcf7af, size: 102 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_1;
|
||||
value = undefined;
|
||||
const value2 = binding(env3_2[5]);
|
||||
value2.dispatch({type: 'SAFETY_HUB_REQUEST_REVIEW_FAILURE',
|
||||
error: (a0 == null || a0.body == null ? value : a0.body.message) ?? 'Unknown error'});
|
||||
throw a0;
|
||||
}
|
||||
|
||||
function _fun87948({body}) { // fn#87948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:3565, offset: 0x01fcf91a, size: 79 bytes, params: 2, frame: 15
|
||||
const verification_request_id = body.verification_request_id;
|
||||
const verification_webview_url = body.verification_webview_url;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = env3_1(env3_2[5]);
|
||||
value.dispatch({type: 'SAFETY_HUB_REQUEST_AUTOMATED_UNDERAGE_APPEAL_SUCCESS',
|
||||
verificationRequestId: verification_request_id, verificationWebviewUrl: verification_webview_url});
|
||||
}
|
||||
|
||||
function _fun87949(a0) { // fn#87949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:3782, offset: 0x01fcf969, size: 102 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_1;
|
||||
value = undefined;
|
||||
const value2 = binding(env3_2[5]);
|
||||
value2.dispatch({type: 'SAFETY_HUB_REQUEST_AUTOMATED_UNDERAGE_APPEAL_FAILURE',
|
||||
error: (a0 == null || a0.body == null ? value : a0.body.message) ?? 'Unknown error'});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun87954({body}) { // fn#87954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:4451, offset: 0x01fcfae4, size: 127 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
var r0;
|
||||
var binding;
|
||||
var setTimeout;
|
||||
const success = body.success;
|
||||
let value = !success;
|
||||
if (success) {
|
||||
r0 = value;
|
||||
} else {
|
||||
binding = env0_0;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = binding < env3_7;
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
setTimeout = global.setTimeout;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
setTimeout(_fun87955, env3_6);
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = env3_1(env3_2[5]);
|
||||
value.dispatch({type: 'SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_SUCCESS', success: success});
|
||||
}
|
||||
|
||||
function _fun87956(a0) { // fn#87956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:4643, offset: 0x01fcfb72, size: 102 bytes, params: 2, frame: 16
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_1;
|
||||
value = undefined;
|
||||
const value2 = binding(env3_2[5]);
|
||||
value2.dispatch({type: 'SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_FAILURE',
|
||||
error: (a0 == null || a0.body == null ? value : a0.body.message) ?? 'Unknown error'});
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun87930(a0) { // fn#87930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:722, offset: 0x01fcf20b, size: 19 bytes, params: 2, frame: 11
|
||||
env4_11(a0);
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun87955() { // fn#87955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11666:4501, offset: 0x01fcfb63, size: 15 bytes, params: 1, frame: 9
|
||||
return env4_14();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 5267; source: modules/safety_hub/SafetyHubConstants.tsx; dependencies: [7, 6, 661, 480, 2] */
|
||||
function _fun46850(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5445:6, offset: 0x011b07d1, size: 1336 bytes, params: 8, frame: 36
|
||||
var object2;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const AnalyticsSections = (require(661) /* metro dependency 661: Constants */).AnalyticsSections;
|
||||
object2 = {SETTINGS: 'SETTINGS', ACCOUNT_STANDING: 'ACCOUNT_STANDING', GUILD_SETTINGS: 'GUILD_SETTINGS',
|
||||
ENCRYPTION: 'ENCRYPTION', CONTENT_AND_SOCIAL: 'CONTENT_AND_SOCIAL', DATA_PRIVACY: 'DATA_PRIVACY'};
|
||||
const SETTINGS = object2.SETTINGS;
|
||||
const items3 = [SETTINGS];
|
||||
const ACCOUNT_STANDING = object2.ACCOUNT_STANDING;
|
||||
items3[1] = ACCOUNT_STANDING;
|
||||
const ENCRYPTION = object2.ENCRYPTION;
|
||||
items3[2] = ENCRYPTION;
|
||||
const value2 = value(SafetyHubLinks);
|
||||
value2.TOS_LINK = 'https://discord.com/terms';
|
||||
value2.COMMUNITY_GUIDELINES = 'https://discord.com/guidelines';
|
||||
value2.APPEALS_LINK = 'https://support.discord.com/hc/requests/new?ticket_form_id=360000029731';
|
||||
value2.WARNING_SYSTEM_HELPCENTER_LINK = 'https://support.discord.com/hc/articles/18210965981847';
|
||||
value2.AGE_VERIFICATION_LINK = 'https://support.discord.com/hc/requests/new?ticket_form_id=360000029731';
|
||||
value2.SPAM_LINK = 'https://support.discord.com/hc/requests/new?ticket_form_id=360000029731&tf_360055270593=__dc.ticket_form-tnsv1_appeals_other_questions__';
|
||||
value2.LEARN_MORE_UU_APPEAL_LINK = 'https://support.discord.com/hc/articles/360041820932';
|
||||
const value3 = value(SafetyHubPolicyNoticeKeys);
|
||||
value3.CLASSIFICATION_ID = 'classification_id';
|
||||
value3.INCIDENT_TIMESTAMP = 'incident_time';
|
||||
value = value(SafetySystemNotificationEmbedKeys);
|
||||
value.ICON_TYPE = 'icon_type';
|
||||
value.HEADER = 'header';
|
||||
value.BODY = 'body';
|
||||
value.CTAS = 'ctas';
|
||||
value.TIMESTAMP = 'timestamp';
|
||||
value.THEME = 'theme';
|
||||
value.CLIENT_VERSION_MESSAGE = 'client_version_message';
|
||||
value.LEARN_MORE_LINK = 'learn_more_link';
|
||||
value.CLASSIFICATION_ID = 'classification_id';
|
||||
const object5 = {ViewViolationDetail: 0};
|
||||
object5[0] = 'ViewViolationDetail';
|
||||
object5.ViewViolationsDropdown = 1;
|
||||
object5[1] = 'ViewViolationsDropdown';
|
||||
object5.ClickLetUsKnow = 2;
|
||||
object5[2] = 'ClickLetUsKnow';
|
||||
object5.ClickAgeVerificationLink = 3;
|
||||
object5[3] = 'ClickAgeVerificationLink';
|
||||
object5.ClickSpamWebformLink = 4;
|
||||
object5[4] = 'ClickSpamWebformLink';
|
||||
object5.ClickLearnMoreLink = 5;
|
||||
object5[5] = 'ClickLearnMoreLink';
|
||||
object5.ClickCommunityGuidelinesLink = 6;
|
||||
object5[6] = 'ClickCommunityGuidelinesLink';
|
||||
object5.ClickWarningSystemHelpcenterLink = 7;
|
||||
object5[7] = 'ClickWarningSystemHelpcenterLink';
|
||||
const object10 = {SystemDM: 0};
|
||||
object10[0] = 'SystemDM';
|
||||
object10.StandingTab = 1;
|
||||
object10[1] = 'StandingTab';
|
||||
object10.AppealIngestion = 2;
|
||||
object10[2] = 'AppealIngestion';
|
||||
Object = global.Object;
|
||||
const freeze = Object.freeze;
|
||||
const APPEAL_INGESTION_SPEED_BUMP = AnalyticsSections.APPEAL_INGESTION_SPEED_BUMP;
|
||||
const APPEAL_INGESTION_COLLECT_SIGNAL = AnalyticsSections.APPEAL_INGESTION_COLLECT_SIGNAL;
|
||||
const APPEAL_INGESTION_CONFIRM_SUBMISSION = AnalyticsSections.APPEAL_INGESTION_CONFIRM_SUBMISSION;
|
||||
const APPEAL_INGESTION_REQUEST_SENT = AnalyticsSections.APPEAL_INGESTION_REQUEST_SENT;
|
||||
const APPEAL_INGESTION_THANKS = AnalyticsSections.APPEAL_INGESTION_THANKS;
|
||||
const APPEAL_INGESTION_SPAM = AnalyticsSections.APPEAL_INGESTION_SPAM;
|
||||
const value4 = Reflect.apply(freeze, Object, [{SPEED_BUMP: APPEAL_INGESTION_SPEED_BUMP,
|
||||
COLLECT_SIGNAL: APPEAL_INGESTION_COLLECT_SIGNAL, CONFIRM_SUBMISSION: APPEAL_INGESTION_CONFIRM_SUBMISSION,
|
||||
REQUEST_SENT: APPEAL_INGESTION_REQUEST_SENT, THANKS: APPEAL_INGESTION_THANKS, SPAM: APPEAL_INGESTION_SPAM}]);
|
||||
const object11 = {DIDNT_VIOLATE_POLICY: 0};
|
||||
object11[0] = 'DIDNT_VIOLATE_POLICY';
|
||||
object11.TOO_STRICT_UNFAIR = 1;
|
||||
object11[1] = 'TOO_STRICT_UNFAIR';
|
||||
object11.DONT_AGREE_PENALTY = 2;
|
||||
object11[2] = 'DONT_AGREE_PENALTY';
|
||||
object11.SOMETHING_ELSE = 3;
|
||||
object11[3] = 'SOMETHING_ELSE';
|
||||
const DIDNT_VIOLATE_POLICY = object11.DIDNT_VIOLATE_POLICY;
|
||||
const items2 = [DIDNT_VIOLATE_POLICY];
|
||||
const TOO_STRICT_UNFAIR = object11.TOO_STRICT_UNFAIR;
|
||||
items2[1] = TOO_STRICT_UNFAIR;
|
||||
const DONT_AGREE_PENALTY = object11.DONT_AGREE_PENALTY;
|
||||
items2[2] = DONT_AGREE_PENALTY;
|
||||
const SOMETHING_ELSE = object11.SOMETHING_ELSE;
|
||||
items2[3] = SOMETHING_ELSE;
|
||||
const object12 = {};
|
||||
const ImpressionGroups = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionGroups;
|
||||
const APPEAL_INGESTION = ImpressionGroups.APPEAL_INGESTION;
|
||||
object12.impression_group = APPEAL_INGESTION;
|
||||
const object14 = {SPEED_BUMP: 'speed-bump', COLLECT_SIGNAL: 'collect-signal',
|
||||
CONFIRM_SUBMISSION: 'confirm-submission', REQUEST_SENT: 'request-sent', THANKS: 'thanks'};
|
||||
const object15 = {};
|
||||
let SPEED_BUMP = object14.SPEED_BUMP;
|
||||
let COLLECT_SIGNAL = object14.COLLECT_SIGNAL;
|
||||
object15[SPEED_BUMP] = {next: COLLECT_SIGNAL, prev: null};
|
||||
COLLECT_SIGNAL = object14.COLLECT_SIGNAL;
|
||||
let CONFIRM_SUBMISSION = object14.CONFIRM_SUBMISSION;
|
||||
SPEED_BUMP = object14.SPEED_BUMP;
|
||||
object15[COLLECT_SIGNAL] = {next: CONFIRM_SUBMISSION, prev: SPEED_BUMP};
|
||||
CONFIRM_SUBMISSION = object14.CONFIRM_SUBMISSION;
|
||||
let REQUEST_SENT = object14.REQUEST_SENT;
|
||||
COLLECT_SIGNAL = object14.COLLECT_SIGNAL;
|
||||
object15[CONFIRM_SUBMISSION] = {next: REQUEST_SENT, prev: COLLECT_SIGNAL};
|
||||
REQUEST_SENT = object14.REQUEST_SENT;
|
||||
object15[REQUEST_SENT] = {'next': null, 'prev': null};
|
||||
const object16 = {USER: 1};
|
||||
object16[1] = 'USER';
|
||||
object16.GUILD_OWNER = 2;
|
||||
object16[2] = 'GUILD_OWNER';
|
||||
object16.GUILD_MEMBER = 3;
|
||||
object16[3] = 'GUILD_MEMBER';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/SafetyHubConstants.tsx');
|
||||
exports.SafetyHubView = object2;
|
||||
exports.SafetyHubViewOrder = items3;
|
||||
exports.AGE_APPEAL_ACTION_SHEET_NAME = 'AUTOMATED_UNDERAGE_APPEAL';
|
||||
exports.SafetyHubLinks = value2;
|
||||
exports.SafetyHubPolicyNoticeKeys = value3;
|
||||
exports.SafetySystemNotificationCtaType = {POLICY_VIOLATION_DETAIL: 'policy_violation_detail',
|
||||
LEARN_MORE_LINK: 'learn_more_link'};
|
||||
exports.SafetySystemNotificationEmbedKeys = value;
|
||||
exports.SafetyHubAnalyticsActions = object5;
|
||||
exports.SafetyHubAnalyticsActionSource = object10;
|
||||
exports.AppealIngestionSections = value4;
|
||||
exports.AppealIngestionSignal = object11;
|
||||
exports.AppealIngestionSignalOrder = items2;
|
||||
exports.DEFAULT_MEDIA_MAX_WIDTH = 372;
|
||||
exports.DEFAULT_MEDIA_MAX_HEIGHT = 279;
|
||||
exports.VIDEO_PLACEHOLDER_WIDTH = 250;
|
||||
exports.VIDEO_PLACEHOLDER_HEIGHT = 250;
|
||||
exports.VIDEO_PLACEHOLDER_FILENAME = 'video.png';
|
||||
exports.APPEAL_INGESTION_IMPRESSION_PROPERTIES = object12;
|
||||
exports.AppealIngestionSlideTypes = object14;
|
||||
exports.AppealIngestionSlidesOrder = object15;
|
||||
exports.ViolationType = object16;
|
||||
exports.AgeCheckStatus = {LOADING: 'loading', ERROR: 'error', SUCCESS: 'success', FAILURE: 'failure', NONE: 'none'};
|
||||
exports.AGE_CHECK_POLL_DELAY_MS = 2000;
|
||||
exports.AGE_CHECK_POLL_INTERVAL_MS = 15000;
|
||||
exports.AGE_CHECK_MAX_POLL_ATTEMPTS = 5;
|
||||
}
|
||||
|
||||
function SafetySystemNotificationEmbedKeys() { // fn#46853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5445:1359, offset: 0x011b0d09, size: 24 bytes, params: 1, frame: 13
|
||||
env0_0(this, SafetySystemNotificationEmbedKeys);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
/* Metro module 5268; source: modules/safety_hub/SafetyHubModels.tsx; dependencies: [2] */
|
||||
function _fun46854(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5446:6, offset: 0x011b0d21, size: 1046 bytes, params: 8, frame: 25
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const object = {OWNER: 1};
|
||||
object[1] = 'OWNER';
|
||||
object.MEMBER = 2;
|
||||
object[2] = 'MEMBER';
|
||||
const object10 = {REVIEW_PENDING: 1};
|
||||
object10[1] = 'REVIEW_PENDING';
|
||||
object10.CLASSIFICATION_UPHELD = 2;
|
||||
object10[2] = 'CLASSIFICATION_UPHELD';
|
||||
object10.CLASSIFICATION_INVALIDATED = 3;
|
||||
object10[3] = 'CLASSIFICATION_INVALIDATED';
|
||||
const object11 = {UNSPECIFIED: 0};
|
||||
object11[0] = 'UNSPECIFIED';
|
||||
object11.UNKNOWN = 1;
|
||||
object11[1] = 'UNKNOWN';
|
||||
object11.UNSOLICITED_PORNOGRAPHY = 100;
|
||||
object11[100] = 'UNSOLICITED_PORNOGRAPHY';
|
||||
object11.NONCONSENSUAL_PORNOGRAPHY = 200;
|
||||
object11[200] = 'NONCONSENSUAL_PORNOGRAPHY';
|
||||
object11.GLORIFYING_VIOLENCE = 210;
|
||||
object11[210] = 'GLORIFYING_VIOLENCE';
|
||||
object11.HATE_SPEECH = 220;
|
||||
object11[220] = 'HATE_SPEECH';
|
||||
object11.CRACKED_ACCOUNTS = 230;
|
||||
object11[230] = 'CRACKED_ACCOUNTS';
|
||||
object11.ILLICIT_GOODS = 240;
|
||||
object11[240] = 'ILLICIT_GOODS';
|
||||
object11.SOCIAL_ENGINEERING = 250;
|
||||
object11[250] = 'SOCIAL_ENGINEERING';
|
||||
object11.TEST_CLASSIFICATION = 9000;
|
||||
object11[9000] = 'TEST_CLASSIFICATION';
|
||||
object11.TEST_CLASSIFICATION_LOW = 9001;
|
||||
object11[9001] = 'TEST_CLASSIFICATION_LOW';
|
||||
object11.TEST_CLASSIFICATION_SEVERE = 9002;
|
||||
object11[9002] = 'TEST_CLASSIFICATION_SEVERE';
|
||||
const object12 = {BAN: 0};
|
||||
object12[0] = 'BAN';
|
||||
object12.TEMP_BAN = 1;
|
||||
object12[1] = 'TEMP_BAN';
|
||||
object12.GLOBAL_QUARANTINE = 2;
|
||||
object12[2] = 'GLOBAL_QUARANTINE';
|
||||
object12.REQUIRE_VERIFICATION = 3;
|
||||
object12[3] = 'REQUIRE_VERIFICATION';
|
||||
object12.USER_WARNING = 4;
|
||||
object12[4] = 'USER_WARNING';
|
||||
object12.USER_SPAMMER = 5;
|
||||
object12[5] = 'USER_SPAMMER';
|
||||
object12.CHANNEL_SPAM = 6;
|
||||
object12[6] = 'CHANNEL_SPAM';
|
||||
object12.MESSAGE_SPAM = 7;
|
||||
object12[7] = 'MESSAGE_SPAM';
|
||||
object12.DISABLE_SUSPICIOUS_ACTIVITY = 8;
|
||||
object12[8] = 'DISABLE_SUSPICIOUS_ACTIVITY';
|
||||
object12.LIMITED_ACCESS = 9;
|
||||
object12[9] = 'LIMITED_ACCESS';
|
||||
object12.CHANNEL_SCHEDULE_DELETE = 10;
|
||||
object12[10] = 'CHANNEL_SCHEDULE_DELETE';
|
||||
object12.MESSAGE_CONTENT_REMOVAL = 11;
|
||||
object12[11] = 'MESSAGE_CONTENT_REMOVAL';
|
||||
object12.GUILD_DISABLE_INVITE = 12;
|
||||
object12[12] = 'GUILD_DISABLE_INVITE';
|
||||
object12.USER_CONTENT_REMOVAL = 13;
|
||||
object12[13] = 'USER_CONTENT_REMOVAL';
|
||||
object12.USER_USERNAME_MANGLE = 14;
|
||||
object12[14] = 'USER_USERNAME_MANGLE';
|
||||
object12.GUILD_LIMITED_ACCESS = 15;
|
||||
object12[15] = 'GUILD_LIMITED_ACCESS';
|
||||
object12.USER_MESSAGE_REMOVAL = 16;
|
||||
object12[16] = 'USER_MESSAGE_REMOVAL';
|
||||
object12.GUILD_DELETE = 20;
|
||||
object12[20] = 'GUILD_DELETE';
|
||||
const object13 = {ALL_GOOD: 100};
|
||||
object13[100] = 'ALL_GOOD';
|
||||
object13.LIMITED = 200;
|
||||
object13[200] = 'LIMITED';
|
||||
object13.VERY_LIMITED = 300;
|
||||
object13[300] = 'VERY_LIMITED';
|
||||
object13.AT_RISK = 400;
|
||||
object13[400] = 'AT_RISK';
|
||||
object13.SUSPENDED = 500;
|
||||
object13[500] = 'SUSPENDED';
|
||||
const object14 = {DSA_ELIGIBLE: 1};
|
||||
object14[1] = 'DSA_ELIGIBLE';
|
||||
object14.IN_APP_ELIGIBLE = 2;
|
||||
object14[2] = 'IN_APP_ELIGIBLE';
|
||||
object14.AGE_VERIFY_ELIGIBLE = 3;
|
||||
object14[3] = 'AGE_VERIFY_ELIGIBLE';
|
||||
object14.AGE_VERIFY_GLOBAL_ELIGIBLE = 4;
|
||||
object14[4] = 'AGE_VERIFY_GLOBAL_ELIGIBLE';
|
||||
const object15 = {WEBFORM: 0};
|
||||
object15[0] = 'WEBFORM';
|
||||
object15.AGE_VERIFY = 1;
|
||||
object15[1] = 'AGE_VERIFY';
|
||||
object15.IN_APP = 2;
|
||||
object15[2] = 'IN_APP';
|
||||
const object16 = {PENDING: 0};
|
||||
object16[0] = 'PENDING';
|
||||
object16.SUCCESS = 1;
|
||||
object16[1] = 'SUCCESS';
|
||||
object16.FAILED = 2;
|
||||
object16[2] = 'FAILED';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/SafetyHubModels.tsx');
|
||||
exports.ContentIdType = {MESSAGE: 'message'};
|
||||
exports.MemberType = object;
|
||||
exports.AppealStatusType = object10;
|
||||
exports.ClassificationType = object11;
|
||||
exports.ActionType = object12;
|
||||
exports.AccountStandingState = object13;
|
||||
exports.AppealEligibility = object14;
|
||||
exports.AppealIngestionType = object15;
|
||||
exports.ClassificationRequestState = object16;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,252 @@
|
||||
/* Metro module 11473; source: modules/safety_hub/SafetyHubStore.tsx; dependencies: [6, 7, 15, 17, 18, 5267, 5268, 11474, 566, 694, 2] */
|
||||
function _fun87846(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:6, offset: 0x01fcdcff, size: 776 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
var r3;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r3);
|
||||
throw undefined;
|
||||
}
|
||||
env0_26 = '';
|
||||
env0_28 = null;
|
||||
env0_29 = false;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const AgeCheckStatus = value.AgeCheckStatus;
|
||||
const AppealIngestionSignal = value.AppealIngestionSignal;
|
||||
const env0_10 = value.AGE_CHECK_MAX_POLL_ATTEMPTS;
|
||||
let env0_11 = {};
|
||||
const env0_12 = {};
|
||||
object2 = {};
|
||||
const AccountStandingState = (require(5268) /* metro dependency 5268: SafetyHubModels */).AccountStandingState;
|
||||
const ALL_GOOD = AccountStandingState.ALL_GOOD;
|
||||
object2.state = ALL_GOOD;
|
||||
let env0_20 = [];
|
||||
let env0_23 = AppealIngestionSignal.DIDNT_VIOLATE_POLICY;
|
||||
let env0_30 = AgeCheckStatus.NONE;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun87851(Store).displayName = 'SafetyHubStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {SAFETY_HUB_FETCH_START: function() {
|
||||
env0_14 = true;
|
||||
}, SAFETY_HUB_FETCH_SUCCESS: function({classifications, accountStanding, isDsaEligible, isAppealEligible, username,
|
||||
appealEligibility}) {
|
||||
env0_11 = importDefault(dependencyMap[7])(classifications, 'id');
|
||||
env0_13 = accountStanding;
|
||||
env0_18 = isDsaEligible;
|
||||
env0_19 = isAppealEligible;
|
||||
env0_14 = false;
|
||||
env0_15 = true;
|
||||
env0_16 = null;
|
||||
env0_25 = username;
|
||||
env0_20 = appealEligibility;
|
||||
}, SAFETY_HUB_FETCH_FAILURE: function({error}) {
|
||||
env0_14 = false;
|
||||
env0_15 = false;
|
||||
env0_16 = error;
|
||||
}, SAFETY_HUB_FETCH_CLASSIFICATION_START: SAFETY_HUB_FETCH_CLASSIFICATION_START,
|
||||
SAFETY_HUB_FETCH_CLASSIFICATION_SUCCESS: SAFETY_HUB_FETCH_CLASSIFICATION_SUCCESS,
|
||||
SAFETY_HUB_FETCH_CLASSIFICATION_FAILURE: SAFETY_HUB_FETCH_CLASSIFICATION_FAILURE,
|
||||
SAFETY_HUB_APPEAL_OPEN: function(a0) {
|
||||
env0_17 = a0.classificationId;
|
||||
}, SAFETY_HUB_APPEAL_CLOSE: function() {
|
||||
env0_17 = null;
|
||||
env0_23 = AppealIngestionSignal.DIDNT_VIOLATE_POLICY;
|
||||
env0_24 = '';
|
||||
}, SAFETY_HUB_APPEAL_SIGNAL_SELECT: function(a0) {
|
||||
env0_23 = a0.signal;
|
||||
}, SAFETY_HUB_APPEAL_SIGNAL_CUSTOM_INPUT_CHANGE: function(a0) {
|
||||
env0_24 = a0.userInput;
|
||||
}, SAFETY_HUB_REQUEST_REVIEW_START: function(a0) {
|
||||
var r3;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r3);
|
||||
throw undefined;
|
||||
}
|
||||
env0_21 = true;
|
||||
env0_22 = null;
|
||||
}, SAFETY_HUB_REQUEST_REVIEW_SUCCESS: SAFETY_HUB_REQUEST_REVIEW_SUCCESS,
|
||||
SAFETY_HUB_REQUEST_REVIEW_FAILURE: function({error}) {
|
||||
env0_21 = false;
|
||||
env0_22 = error;
|
||||
}, SAFETY_HUB_REQUEST_AUTOMATED_UNDERAGE_APPEAL_START: function(a0) {
|
||||
var r3;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r3);
|
||||
throw undefined;
|
||||
}
|
||||
env0_26 = '';
|
||||
env0_28 = null;
|
||||
env0_29 = true;
|
||||
}, SAFETY_HUB_REQUEST_AUTOMATED_UNDERAGE_APPEAL_SUCCESS: function(a0) {
|
||||
env0_26 = a0.verificationWebviewUrl;
|
||||
env0_28 = null;
|
||||
env0_29 = false;
|
||||
}, SAFETY_HUB_REQUEST_AUTOMATED_UNDERAGE_APPEAL_FAILURE: function({error}) {
|
||||
env0_26 = '';
|
||||
env0_28 = error;
|
||||
env0_29 = false;
|
||||
}, SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_OPEN: closure,
|
||||
SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_MODAL_CLOSE: closure,
|
||||
SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_SUBMIT_SUCCESS: SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_SUBMIT_SUCCESS,
|
||||
SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_START_POLL: function(a0) {
|
||||
var r3;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r3);
|
||||
throw undefined;
|
||||
}
|
||||
env0_30 = AgeCheckStatus.LOADING;
|
||||
env0_31 = null;
|
||||
}, SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_START: SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_START,
|
||||
SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_SUCCESS: SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_SUCCESS,
|
||||
SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_FAILURE: function({error}) {
|
||||
env0_30 = AgeCheckStatus.ERROR;
|
||||
env0_31 = error;
|
||||
}, LOGOUT: function() {
|
||||
env0_14 = false;
|
||||
env0_11 = {};
|
||||
var object = {};
|
||||
object.state = require(dependencyMap[6]).AccountStandingState.ALL_GOOD;
|
||||
env0_13 = object;
|
||||
env0_17 = null;
|
||||
env0_23 = AppealIngestionSignal.DIDNT_VIOLATE_POLICY;
|
||||
env0_24 = '';
|
||||
env0_20 = [];
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/SafetyHubStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_87847() { // fn#87847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:235, offset: 0x01fce007, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_87847_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun87851(a0) { // fn#87851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:703, offset: 0x01fce09c, size: 627 bytes, params: 2, frame: 16
|
||||
const closure = SafetyHubStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'isFetching', value: value_87853}, {key: 'getClassifications', value: value_87854},
|
||||
{key: 'getClassification', value: value_87855}, {key: 'getAccountStanding', value: value_87856},
|
||||
{key: 'getFetchError', value: value_87857}, {key: 'isInitialized', value: value_87858},
|
||||
{key: 'getClassificationRequestState', value: value_87859}, {key: 'getAppealClassificationId',
|
||||
value: value_87860}, {key: 'getIsDsaEligible', value: value_87861}, {key: 'getIsAppealEligible',
|
||||
value: value_87862}, {key: 'getAppealEligibility', value: value_87863}, {key: 'getAppealSignal',
|
||||
value: function() {
|
||||
return DIDNT_VIOLATE_POLICY;
|
||||
}}, {key: 'getFreeTextAppealReason', value: value_87865}, {key: 'getIsSubmitting', value: value_87866},
|
||||
{key: 'getSubmitError', value: value_87867}, {key: 'getUsername', value: value_87868},
|
||||
{key: 'getAgeVerificationWebviewUrl', value: value_87869}, {key: 'getAgeVerificationError', value: value_87870},
|
||||
{key: 'getIsLoadingAgeVerification', value: value_87871}, {key: 'getAgeCheckStatus', value: function() {
|
||||
return NONE;
|
||||
}}, {key: 'getAgeCheckError', value: value_87873}, {key: 'getAgeCheckAttempts', value: value_87874}]);
|
||||
}
|
||||
|
||||
function SAFETY_HUB_FETCH_CLASSIFICATION_START({classificationId}) { // fn#87878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:2658, offset: 0x01fce3bd, size: 62 bytes, params: 2, frame: 14
|
||||
const binding = env0_12;
|
||||
const ClassificationRequestState = (require(5268) /* metro dependency 5268: SafetyHubModels */).ClassificationRequestState;
|
||||
const PENDING = ClassificationRequestState.PENDING;
|
||||
binding[classificationId] = PENDING;
|
||||
}
|
||||
|
||||
function SAFETY_HUB_FETCH_CLASSIFICATION_SUCCESS({classification, accountStanding, isDsaEligible, username, isAppealEligible}) { // fn#87879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:2812, offset: 0x01fce3fb, size: 132 bytes, params: 2, frame: 18
|
||||
let binding = env0_11;
|
||||
let id = classification.id;
|
||||
binding[id] = classification;
|
||||
binding = env0_12;
|
||||
id = classification.id;
|
||||
const ClassificationRequestState = (require(5268) /* metro dependency 5268: SafetyHubModels */).ClassificationRequestState;
|
||||
const SUCCESS = ClassificationRequestState.SUCCESS;
|
||||
binding[id] = SUCCESS;
|
||||
}
|
||||
|
||||
function SAFETY_HUB_FETCH_CLASSIFICATION_FAILURE({error, classificationId}) { // fn#87880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:3073, offset: 0x01fce47f, size: 75 bytes, params: 2, frame: 15
|
||||
const binding = env0_12;
|
||||
const ClassificationRequestState = (require(5268) /* metro dependency 5268: SafetyHubModels */).ClassificationRequestState;
|
||||
const FAILED = ClassificationRequestState.FAILED;
|
||||
binding[classificationId] = FAILED;
|
||||
}
|
||||
|
||||
function SAFETY_HUB_REQUEST_REVIEW_SUCCESS({classificationId}) { // fn#87886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:3693, offset: 0x01fce554, size: 80 bytes, params: 2, frame: 13
|
||||
const property = env0_11[classificationId];
|
||||
const AppealStatusType = (require(5268) /* metro dependency 5268: SafetyHubModels */).AppealStatusType;
|
||||
const REVIEW_PENDING = AppealStatusType.REVIEW_PENDING;
|
||||
property.appeal_status = {status: REVIEW_PENDING};
|
||||
}
|
||||
|
||||
function SAFETY_HUB_AUTOMATED_UNDERAGE_APPEAL_SUBMIT_SUCCESS(a0) { // fn#87891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:4608, offset: 0x01fce631, size: 142 bytes, params: 2, frame: 22
|
||||
var r6;
|
||||
var propertyName;
|
||||
var propertyName2;
|
||||
var is_coppa;
|
||||
var property;
|
||||
var AppealStatusType;
|
||||
var REVIEW_PENDING;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
|
||||
throw undefined;
|
||||
}
|
||||
env0_30 = AgeCheckStatus.LOADING;
|
||||
for (propertyName in env0_11) {
|
||||
is_coppa = env0_11[propertyName].is_coppa;
|
||||
if (!is_coppa) {
|
||||
r6 = propertyName2;
|
||||
continue;
|
||||
}
|
||||
property = env0_11[propertyName];
|
||||
AppealStatusType = (require(5268) /* metro dependency 5268: SafetyHubModels */).AppealStatusType;
|
||||
REVIEW_PENDING = AppealStatusType.REVIEW_PENDING;
|
||||
property.appeal_status = {status: REVIEW_PENDING};
|
||||
r6 = propertyName2;
|
||||
}
|
||||
}
|
||||
|
||||
function SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_START(a0) { // fn#87893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:4962, offset: 0x01fce6f2, size: 66 bytes, params: 2, frame: 13
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
|
||||
throw undefined;
|
||||
}
|
||||
env0_30 = AgeCheckStatus.LOADING;
|
||||
env0_27 += 1;
|
||||
}
|
||||
|
||||
function SAFETY_HUB_CHECK_AUTOMATED_UNDERAGE_APPEAL_SUCCESS({success}) { // fn#87894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:5092, offset: 0x01fce734, size: 75 bytes, params: 2, frame: 3
|
||||
env0_30 = success ? AgeCheckStatus.SUCCESS : env0_27 < AGE_CHECK_MAX_POLL_ATTEMPTS ? AgeCheckStatus.LOADING : AgeCheckStatus.FAILURE;
|
||||
}
|
||||
|
||||
function value_87854() { // fn#87854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11659:1057, offset: 0x01fce30f, size: 27 bytes, params: 1, frame: 11
|
||||
const Object = global.Object;
|
||||
return Object.values(env1_11);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
/* Metro module 5266; source: modules/safety_hub/SafetyHubUtils.tsx; dependencies: [1226, 5267, 661, 4503, 3738, 4631, 1244, 5268, 566, 2] */
|
||||
function _fun46833(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:6, offset: 0x011b0031, size: 340 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = parseMessageEmbedForProps;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const safetyHubConstantsModule = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_4 = safetyHubConstantsModule.AppealIngestionSignal;
|
||||
const env0_5 = safetyHubConstantsModule.SafetySystemNotificationCtaType;
|
||||
const env0_6 = safetyHubConstantsModule.SafetySystemNotificationEmbedKeys;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AbortCodes;
|
||||
const env0_8 = (require(4503) /* metro dependency 4503: MessageConstants */).SPOILER_ATTACHMENT_PREFIX;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/SafetyHubUtils.tsx');
|
||||
exports.getClassificationRelativeIncidentTime = getClassificationRelativeIncidentTime;
|
||||
exports.getAttachmentFilename = getAttachmentFilename;
|
||||
exports.parseMessageForProps = function(a0) {
|
||||
return parseMessageEmbedForProps(a0.embeds[0]);
|
||||
};
|
||||
exports.parseMessageEmbedForProps = closure;
|
||||
exports.mapCtaToNativeData = mapCtaToNativeData;
|
||||
exports.isFlaggedContentEmpty = isFlaggedContentEmpty;
|
||||
exports.getAppealSignalDisplayText = getAppealSignalDisplayText;
|
||||
exports.capitalizeText = function(a0) {
|
||||
var r1;
|
||||
var r0;
|
||||
var value = '';
|
||||
if (a0 == null) {
|
||||
r0 = value;
|
||||
} else if (a0.length === 0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
if (a0.length === 1) {
|
||||
r1 = a0.toUpperCase();
|
||||
} else {
|
||||
value = value + a0.charAt(0).toUpperCase() + a0.slice(1);
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
exports.isGuildClassification = function(a0) {
|
||||
return a0 != null && a0.guild_metadata != null;
|
||||
};
|
||||
exports.getRequestReviewErrorFromCode = getRequestReviewErrorFromCode;
|
||||
exports.getClassificationExpiration = function({max_expiration_time}) {
|
||||
var Date;
|
||||
var prototype;
|
||||
var value;
|
||||
var value2;
|
||||
var error;
|
||||
if (max_expiration_time == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
Date = global.Date;
|
||||
prototype = Date.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Date}});
|
||||
value2 = new Date(max_expiration_time);
|
||||
value = value2 instanceof Object ? value2 : value;
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
return value;
|
||||
};
|
||||
exports.useIsSuspendedUser = useIsSuspendedUser;
|
||||
exports.isCurrentUserSuspended = isCurrentUserSuspended;
|
||||
}
|
||||
|
||||
function parseMessageEmbedForProps(a0) { // fn#46834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:273, offset: 0x011b0185, size: 298 bytes, params: 2, frame: 18
|
||||
var r5;
|
||||
var value;
|
||||
var object2;
|
||||
var property;
|
||||
var value3;
|
||||
var parseFloat;
|
||||
if (a0.fields != null) {
|
||||
value = a0.fields.reduce(function(a0, a1) {
|
||||
a0[a1.rawName] = a1.rawValue;
|
||||
return a0;
|
||||
}, {});
|
||||
object2 = {};
|
||||
property = value[SafetySystemNotificationEmbedKeys.HEADER];
|
||||
value3 = '';
|
||||
r5 = property ?? value3;
|
||||
object2.header = r5;
|
||||
object2.icon = value[SafetySystemNotificationEmbedKeys.ICON_TYPE];
|
||||
property = value[SafetySystemNotificationEmbedKeys.BODY];
|
||||
r5 = property ?? value3;
|
||||
object2.body = r5;
|
||||
property = value[SafetySystemNotificationEmbedKeys.CTAS];
|
||||
object2.ctas = (property ?? value3).split(',').filter(_fun46836);
|
||||
parseFloat = global.parseFloat;
|
||||
property = value[SafetySystemNotificationEmbedKeys.TIMESTAMP];
|
||||
object2.timestamp = parseFloat(property ?? 0);
|
||||
object2.theme = value[SafetySystemNotificationEmbedKeys.THEME];
|
||||
object2.learn_more_link = value[SafetySystemNotificationEmbedKeys.LEARN_MORE_LINK];
|
||||
object2.classification_id = value[SafetySystemNotificationEmbedKeys.CLASSIFICATION_ID];
|
||||
return object2;
|
||||
}
|
||||
}
|
||||
|
||||
function getClassificationRelativeIncidentTime(a0) { // fn#46837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:818, offset: 0x011b02c7, size: 58 bytes, params: 2, frame: 14
|
||||
const value = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
return value.to((importDefault(3738) /* metro dependency 3738 */)(a0));
|
||||
}
|
||||
|
||||
function getAttachmentFilename(a0) { // fn#46838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:925, offset: 0x011b0301, size: 162 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
var moduleValue2;
|
||||
var isVideoFile;
|
||||
var value;
|
||||
const mediaFormatTestersModule = require(4631) /* metro dependency 4631: MediaFormatTesters */;
|
||||
const isImageFile = mediaFormatTestersModule.isImageFile;
|
||||
let filename = a0.filename;
|
||||
if (Reflect.apply(isImageFile, mediaFormatTestersModule, [filename])) {
|
||||
filename = a0.filename;
|
||||
value = '.png';
|
||||
value = '' + SPOILER_ATTACHMENT_PREFIX + (filename ?? value);
|
||||
r0 = value;
|
||||
} else {
|
||||
moduleValue2 = mediaFormatTestersModule;
|
||||
isVideoFile = moduleValue2.isVideoFile;
|
||||
filename = a0.filename;
|
||||
if (Reflect.apply(isVideoFile, moduleValue2, [filename])) {
|
||||
filename = a0.filename;
|
||||
value = '.png';
|
||||
value = '' + SPOILER_ATTACHMENT_PREFIX + (filename ?? value);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = a0.filename ?? '';
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function mapCtaToNativeData(a0, a1, a2) { // fn#46840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:1283, offset: 0x011b03c2, size: 246 bytes, params: 4, frame: 18
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value = a1;
|
||||
const value2 = a2;
|
||||
const LEARN_MORE_LINK = SafetySystemNotificationCtaType.LEARN_MORE_LINK;
|
||||
if (LEARN_MORE_LINK === a0) {
|
||||
object2 = {};
|
||||
object2.text = intl.string(t['8/GdRB']);
|
||||
object2.type = SafetySystemNotificationCtaType.LEARN_MORE_LINK;
|
||||
object2.key = value ?? '';
|
||||
return object2;
|
||||
}
|
||||
const POLICY_VIOLATION_DETAIL = SafetySystemNotificationCtaType.POLICY_VIOLATION_DETAIL;
|
||||
if (POLICY_VIOLATION_DETAIL === a0) {
|
||||
return {text: intl.string(t.QsqdXC), type: SafetySystemNotificationCtaType.POLICY_VIOLATION_DETAIL,
|
||||
key: value2 ?? ''};
|
||||
}
|
||||
}
|
||||
|
||||
function isFlaggedContentEmpty(a0) { // fn#46841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:1616, offset: 0x011b04b8, size: 90 bytes, params: 2, frame: 13
|
||||
const type = a0.type;
|
||||
const ContentIdType = (require(5268) /* metro dependency 5268: SafetyHubModels */).ContentIdType;
|
||||
const MESSAGE = ContentIdType.MESSAGE;
|
||||
return type !== MESSAGE || a0.content === '' && a0.attachments.length === 0;
|
||||
}
|
||||
|
||||
function getAppealSignalDisplayText(a0) { // fn#46842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:1768, offset: 0x011b0512, size: 259 bytes, params: 2, frame: 18
|
||||
const object2 = {};
|
||||
const DIDNT_VIOLATE_POLICY = AppealIngestionSignal.DIDNT_VIOLATE_POLICY;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2[DIDNT_VIOLATE_POLICY] = Reflect.apply(string, intl, [t.mZffAi]);
|
||||
const TOO_STRICT_UNFAIR = AppealIngestionSignal.TOO_STRICT_UNFAIR;
|
||||
object2[TOO_STRICT_UNFAIR] = intl.string(t.wgZVAn);
|
||||
const DONT_AGREE_PENALTY = AppealIngestionSignal.DONT_AGREE_PENALTY;
|
||||
object2[DONT_AGREE_PENALTY] = intl.string(t.eu8G4k);
|
||||
const SOMETHING_ELSE = AppealIngestionSignal.SOMETHING_ELSE;
|
||||
string = intl.string;
|
||||
const XU3s6r = t.XU3s6r;
|
||||
object2[SOMETHING_ELSE] = Reflect.apply(string, intl, [XU3s6r]);
|
||||
return object2[a0];
|
||||
}
|
||||
|
||||
function getRequestReviewErrorFromCode(a0) { // fn#46845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:2267, offset: 0x011b069d, size: 142 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const DSA_APPEAL_REQUEST_DEFLECTION = AbortCodes.DSA_APPEAL_REQUEST_DEFLECTION;
|
||||
return a0 === DSA_APPEAL_REQUEST_DEFLECTION ? intl.string(t['0qyXXH']) : intl.string(t.aPmsx3);
|
||||
}
|
||||
|
||||
function useIsSuspendedUser() { // fn#46847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:2573, offset: 0x011b0766, size: 63 bytes, params: 1, frame: 13
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
return Reflect.apply(useStateFromStores, fluxModule, [[AuthenticationStore], function() {
|
||||
return AuthenticationStore.getSuspendedUserToken();
|
||||
}]) != null;
|
||||
}
|
||||
|
||||
function isCurrentUserSuspended() { // fn#46849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5444:2672, offset: 0x011b07b8, size: 25 bytes, params: 1, frame: 9
|
||||
return AuthenticationStore.getSuspendedUserToken() != null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 11491; source: modules/safety_hub/hooks/useEmitAppealIngestionEvent.tsx; dependencies: [31, 11473, 5267, 661, 566, 11479, 11481, 683, 2] */
|
||||
function _fun88054(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11677:6, offset: 0x01fd2fb1, size: 191 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
const env0_5 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubAnalyticsActionSource;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = constantsModule.EMPTY_STRING_SNOWFLAKE_ID;
|
||||
const env0_7 = constantsModule.AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/hooks/useEmitAppealIngestionEvent.tsx');
|
||||
exports.useEmitAppealIngestionEvent = useEmitAppealIngestionEvent;
|
||||
}
|
||||
|
||||
function useEmitAppealIngestionEvent() { // fn#88055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11677:336, offset: 0x01fd3070, size: 227 bytes, params: 1, frame: 19
|
||||
const appealClassificationId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getAppealClassificationId();
|
||||
});
|
||||
const value2 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification(appealClassificationId ?? EMPTY_STRING_SNOWFLAKE_ID);
|
||||
const value3 = (require(11481) /* metro dependency 11481: useSafetyHubAccountStanding */).useSafetyHubAccountStanding();
|
||||
const isDsaEligible = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getIsDsaEligible();
|
||||
});
|
||||
return isDsaEligible.useCallback(_fun88058, [value3.state, appealClassificationId, value2, isDsaEligible]);
|
||||
}
|
||||
|
||||
function _fun88058(a0) { // fn#88058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11677:588, offset: 0x01fd3166, size: 158 bytes, params: 2, frame: 19
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const SAFETY_HUB_ACTION = AnalyticEvents.SAFETY_HUB_ACTION;
|
||||
const object2 = {action: a0};
|
||||
object2.account_standing = env0_2.state;
|
||||
const appealClassificationIdBinding = appealClassificationId;
|
||||
const value3 = null;
|
||||
object2.classification_ids = value3 != appealClassificationIdBinding ? [global.Number(appealClassificationId)] : value3;
|
||||
const AppealIngestion = SafetyHubAnalyticsActionSource.AppealIngestion;
|
||||
object2.source = AppealIngestion;
|
||||
object2.is_dsa_eligible = isDsaEligible;
|
||||
object2.violation_type = env0_1.violationType;
|
||||
Reflect.apply(track, defaultImport, [SAFETY_HUB_ACTION, object2]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Metro module 13279; source: modules/safety_hub/hooks/useIsNewClassification.tsx; dependencies: [21, 2] */
|
||||
function _fun101246(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13469:6, offset: 0x0220e20c, size: 99 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/hooks/useIsNewClassification.tsx');
|
||||
exports.useIsNewClassification = useIsNewClassification;
|
||||
}
|
||||
|
||||
function useIsNewClassification({id}) { // fn#101247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13469:202, offset: 0x0220e26f, size: 114 bytes, params: 2, frame: 13
|
||||
let value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.extractTimestamp(id);
|
||||
const Math = global.Math;
|
||||
const abs = Math.abs;
|
||||
const Date = global.Date;
|
||||
const date = new Date();
|
||||
const getTime = date.getTime;
|
||||
value = Reflect.apply(abs, Math, [value - Reflect.apply(getTime, date, [])]);
|
||||
return value < 86400000;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 11481; source: modules/safety_hub/hooks/useSafetyHubAccountStanding.tsx; dependencies: [11473, 566, 2] */
|
||||
function _fun87961(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11667:6, offset: 0x01fcfbd8, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/hooks/useSafetyHubAccountStanding.tsx');
|
||||
exports.useSafetyHubAccountStanding = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([SafetyHubStore], _fun87963);
|
||||
};
|
||||
}
|
||||
|
||||
function useSafetyHubAccountStanding() { // fn#87962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11667:226, offset: 0x01fcfc4a, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore], function() {
|
||||
return SafetyHubStore.getAccountStanding();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/* Metro module 11479; source: modules/safety_hub/hooks/useSafetyHubClassifications.tsx; dependencies: [31, 11473, 5267, 566, 21, 5266, 5268, 11480, 2] */
|
||||
function _fun87909(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:6, offset: 0x01fce9cc, size: 221 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = useSafetyHubClassifications;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
const env0_6 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).ViolationType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/hooks/useSafetyHubClassifications.tsx');
|
||||
exports.useSafetyHubClassifications = closure;
|
||||
exports.useSafetyHubClassification = useSafetyHubClassification;
|
||||
exports.useActiveSafetyHubClassifications = useActiveSafetyHubClassifications;
|
||||
exports.useExpiredSafetyHubClassifications = useExpiredSafetyHubClassifications;
|
||||
exports.useSafetyHubAppealSignal = function() {
|
||||
return require(dependencyMap[3]).useStateFromStores([SafetyHubStore], _fun87924);
|
||||
};
|
||||
}
|
||||
|
||||
function useSafetyHubClassifications() { // fn#87910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:142, offset: 0x01fceaa9, size: 78 bytes, params: 1, frame: 14
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
|
||||
return Reflect.apply(useStateFromStoresArray, fluxModule, [[SafetyHubStore], function() {
|
||||
return SafetyHubStore.getClassifications();
|
||||
}]).sort(_fun87912);
|
||||
}
|
||||
|
||||
function useSafetyHubClassification(a0) { // fn#87913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:508, offset: 0x01fceb5a, size: 402 bytes, params: 2, frame: 22
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const classification = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
_fun87914);
|
||||
const classificationRequestState = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
_fun87915);
|
||||
const isDsaEligible = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getIsDsaEligible();
|
||||
});
|
||||
const isAppealEligible = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getIsAppealEligible();
|
||||
});
|
||||
const safetyHubUtilsModule = require(5266) /* metro dependency 5266: SafetyHubUtils */;
|
||||
const r1 = safetyHubUtilsModule.isGuildClassification(classification) ? (classification.guild_metadata == null ? value2 : classification.guild_metadata.member_type) === (require(5268) /* metro dependency 5268: SafetyHubModels */).MemberType.OWNER ? ViolationType.GUILD_OWNER : ViolationType.GUILD_MEMBER : ViolationType.USER;
|
||||
env0_4.useEffect(_fun87918, [a0, classification, classificationRequestState]);
|
||||
return {classification: classification, classificationRequestState: classificationRequestState,
|
||||
isDsaEligible: isDsaEligible,
|
||||
isAppealEligible: isAppealEligible && classification != null && classification.appeal_status == null,
|
||||
violationType: r1};
|
||||
}
|
||||
|
||||
function useActiveSafetyHubClassifications() { // fn#87919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:1237, offset: 0x01fced93, size: 66 bytes, params: 1, frame: 12
|
||||
const value = useSafetyHubClassifications();
|
||||
const Date = global.Date;
|
||||
const date = new Date();
|
||||
return value.filter(_fun87920);
|
||||
}
|
||||
|
||||
function useExpiredSafetyHubClassifications() { // fn#87921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:1423, offset: 0x01fcee07, size: 66 bytes, params: 1, frame: 12
|
||||
const value = useSafetyHubClassifications();
|
||||
const Date = global.Date;
|
||||
const date = new Date();
|
||||
return value.filter(_fun87922);
|
||||
}
|
||||
|
||||
function useSafetyHubAppealSignal() { // fn#87923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:1601, offset: 0x01fcee7b, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore], function() {
|
||||
return SafetyHubStore.getAppealSignal();
|
||||
});
|
||||
}
|
||||
|
||||
function _fun87912({id}, {id}) { // fn#87912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:260, offset: 0x01fceb0c, size: 78 bytes, params: 3, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((importDefault(21) /* metro dependency 21: SnowflakeUtils */).extractTimestamp, value, [id]);
|
||||
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
return value - defaultImport.extractTimestamp(id);
|
||||
}
|
||||
|
||||
function _fun87914() { // fn#87914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:589, offset: 0x01fcecec, size: 29 bytes, params: 1, frame: 11
|
||||
return SafetyHubStore.getClassification(env0_0);
|
||||
}
|
||||
|
||||
function _fun87915() { // fn#87915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:652, offset: 0x01fced09, size: 29 bytes, params: 1, frame: 11
|
||||
return SafetyHubStore.getClassificationRequestState(env0_0);
|
||||
}
|
||||
|
||||
function _fun87918() { // fn#87918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:986, offset: 0x01fced4e, size: 69 bytes, params: 1, frame: 13
|
||||
var value4;
|
||||
if (classification === undefined && classificationRequestState == null) {
|
||||
value4 = environment.__proto__;
|
||||
(importAll(11480) /* metro dependency 11480: SafetyHubActionCreators */).getSafetyHubDataForClassification(env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87920({max_expiration_time}) { // fn#87920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:1346, offset: 0x01fcedd5, size: 50 bytes, params: 2, frame: 11
|
||||
const Date = global.Date;
|
||||
return new Date(max_expiration_time) > env0_0;
|
||||
}
|
||||
|
||||
function _fun87922({max_expiration_time}) { // fn#87922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11665:1533, offset: 0x01fcee49, size: 50 bytes, params: 2, frame: 11
|
||||
const Date = global.Date;
|
||||
return new Date(max_expiration_time) <= env0_0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 13274; source: modules/safety_hub/hooks/useSafetyHubFetchError.tsx; dependencies: [11473, 566, 2] */
|
||||
function _fun101208(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13464:6, offset: 0x0220b908, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/hooks/useSafetyHubFetchError.tsx');
|
||||
exports.useSafetyHubFetchError = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([SafetyHubStore], _fun101210);
|
||||
};
|
||||
}
|
||||
|
||||
function useSafetyHubFetchError() { // fn#101209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13464:216, offset: 0x0220b97a, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore], function() {
|
||||
return SafetyHubStore.getFetchError();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 11503; source: modules/safety_hub/hooks/useSafetyHubInitialized.tsx; dependencies: [11473, 566, 2] */
|
||||
function _fun88099(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11689:6, offset: 0x01fd521f, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/hooks/useSafetyHubInitialized.tsx');
|
||||
exports.useSafetyHubInitialized = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([SafetyHubStore], _fun88101);
|
||||
};
|
||||
}
|
||||
|
||||
function useSafetyHubInitialized() { // fn#88100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11689:218, offset: 0x01fd5291, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore], function() {
|
||||
return SafetyHubStore.isInitialized();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 13273; source: modules/safety_hub/hooks/useSafetyHubLoading.tsx; dependencies: [11473, 566, 2] */
|
||||
function _fun101205(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13463:6, offset: 0x0220b848, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/hooks/useSafetyHubLoading.tsx');
|
||||
exports.default = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([SafetyHubStore], _fun101207);
|
||||
};
|
||||
}
|
||||
|
||||
function useIsSafetyHubLoading() { // fn#101206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13463:198, offset: 0x0220b8ba, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore], function() {
|
||||
return SafetyHubStore.isFetching();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 11492; source: modules/safety_hub/native/AppealIngestionActivitySummary.tsx; dependencies: [31, 27, 33, 4501, 11482, 2] */
|
||||
function _fun88059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11678:6, offset: 0x01fd3204, size: 197 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({activity: {marginBottom: 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionActivitySummary.tsx');
|
||||
exports.default = AppealIngestionActivitySummary;
|
||||
}
|
||||
|
||||
function AppealIngestionActivitySummary({flaggedContent}) { // fn#88060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11678:290, offset: 0x01fd32c9, size: 87 bytes, params: 2, frame: 17
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.activity}>
|
||||
{((Component) => <Component flaggedContent={flaggedContent} />)(importDefault(11482) /* metro dependency 11482: ClassificationEvidence */)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 11498; source: modules/safety_hub/native/AppealIngestionBreadcrumbs.tsx; dependencies: [31, 27, 33, 4501, 697, 4573, 1244, 2] */
|
||||
function _fun88087(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11684:6, offset: 0x01fd485d, size: 355 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
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 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'flex': 0, 'alignSelf': 'stretch', 'marginBottom': 8}, title: {'lineHeight': 16,
|
||||
'marginBottom': 8}, breadCrumbItemContainer: {'flexDirection': 'row', 'justifyContent': 'flex-start',
|
||||
'marginBottom': 8, 'marginEnd': 32, 'overflow': 'visible'}};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object2.breadCrumbDot = {'marginStart': 2, 'marginTop': 8, 'width': 4, 'height': 4, 'borderRadius': 2,
|
||||
backgroundColor: BACKGROUND_BRAND};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object2.breadCrumbBar = {'position': 'absolute', 'width': 2, 'top': 10, 'bottom': -12, 'left': 3,
|
||||
backgroundColor: BACKGROUND_BASE_LOWEST};
|
||||
object2.breadCrumbText = {'marginStart': 8, 'lineHeight': 20};
|
||||
const env0_5 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionBreadcrumbs.tsx');
|
||||
exports.default = AppealIngestionBreadcrumbs;
|
||||
}
|
||||
|
||||
function AppealIngestionBreadcrumbs({reasons}) { // fn#88088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11684:774, offset: 0x01fd49c0, size: 217 bytes, params: 2, frame: 24
|
||||
var r0;
|
||||
var Text;
|
||||
var intl;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
if (reasons.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.container};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var textProps = {'style': null, 'accessibilityRole': 'header', 'variant': 'text-xs/bold', style: styles.title};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
value = <Text {...textProps}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eQg0Ck)}</Text>;
|
||||
value = <View {...viewBindingProps}>{[value, reasons.map(_fun88089)]}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun88089(a0, a1) { // fn#88089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11684:1027, offset: 0x01fd4a99, size: 198 bytes, params: 3, frame: 21
|
||||
const stylesBinding = styles;
|
||||
const breadCrumbItemContainer = stylesBinding.breadCrumbItemContainer;
|
||||
const items2 = [<View style={stylesBinding.breadCrumbBar} />];
|
||||
items2[1] = <View style={stylesBinding.breadCrumbDot} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[2] = <Text lineClamp={2} ellipsizeMode="tail" style={stylesBinding.breadCrumbText} variant="text-md/medium">{a0}</Text>;
|
||||
return (
|
||||
<View style={breadCrumbItemContainer} key={'' + a0 + '+' + a1}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/* Metro module 11495; source: modules/safety_hub/native/AppealIngestionCollectSignal.tsx; dependencies: [31, 27, 5267, 33, 4501, 697, 3874, 7972, 5266, 11479, 694, 4080, 11496, 1962, 1244, 11489, 6766, 2] */
|
||||
function _fun88066(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11681:6, offset: 0x01fd3850, size: 362 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_4 = value.AppealIngestionSignal;
|
||||
const env0_5 = value.AppealIngestionSignalOrder;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {container: {'flex': 1, 'paddingHorizontal': 16}};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.form = {marginBottom: 16, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object2.formRow = {paddingVertical: 16, backgroundColor: BACKGROUND_BASE_LOWEST};
|
||||
object2.formSection = {gap: 8};
|
||||
object2.disclaimer = {marginTop: 24};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionCollectSignal.tsx');
|
||||
exports.default = AppealIngestionCollectSignal;
|
||||
}
|
||||
|
||||
function AppealSignalRadioRow({signal, selected, rowStyle, onSelect}) { // fn#88067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11681:482, offset: 0x01fd39ba, size: 254 bytes, params: 2, frame: 27
|
||||
var object2;
|
||||
const {accessibilityRole,
|
||||
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: selected});
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
object2 = {style: rowStyle};
|
||||
const FormRow2 = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const Label = FormRow2.Label;
|
||||
object2.label = <Label text={(require(5266) /* metro dependency 5266: SafetyHubUtils */).getAppealSignalDisplayText(signal)} />;
|
||||
object2.onPress = function() {
|
||||
return onSelect(signal);
|
||||
};
|
||||
const FormRow3 = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
const Radio = FormRow3.Radio;
|
||||
object2.trailing = <Radio selected={selected} />;
|
||||
object2.accessibilityRole = accessibilityRole;
|
||||
object2.accessibilityState = accessibilityState;
|
||||
return <FormRow {...object2} />;
|
||||
}
|
||||
|
||||
function AppealIngestionCollectSignal({isDsaEligible}) { // fn#88069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11681:969, offset: 0x01fd3ab8, size: 528 bytes, params: 2, frame: 30
|
||||
const styles = useStyles();
|
||||
const env0_2 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubAppealSignal();
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const value2 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['C5q+pW']]);
|
||||
string = intl.string;
|
||||
const VEcRhw = (require(1244) /* metro dependency 1244: indexNative */).t.VEcRhw;
|
||||
const value3 = Reflect.apply(string, intl, [VEcRhw]);
|
||||
const AppealIngestionModalScreen = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalScreen;
|
||||
const AppealIngestionModalHeader = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalHeader;
|
||||
const appealIngestionModalHeader = <AppealIngestionModalHeader headerText={value2} subHeaderText={value3} />;
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const FormSection = (require(7972) /* metro dependency 7972: native */).FormSection;
|
||||
const formSection = <FormSection sectionBodyStyle={styles.formSection} accessibilityRole="radiogroup">{AppealIngestionSignalOrder.map(_fun88073)}</FormSection>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
return (
|
||||
<AppealIngestionModalScreen>
|
||||
{appealIngestionModalHeader}
|
||||
<View style={styles.container}>
|
||||
<Form style={styles.form}>
|
||||
{formSection}
|
||||
<View style={styles.disclaimer}>
|
||||
<TextWithIOSLinkWorkaround variant="text-sm/normal">
|
||||
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['8k9GCW'], {})}
|
||||
</TextWithIOSLinkWorkaround>
|
||||
</View>
|
||||
</Form>
|
||||
</View>
|
||||
</AppealIngestionModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function handleAppealSignalSelect(a0) { // fn#88070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11681:1098, owner: AppealIngestionCollectSignal.handleAppealSignalSelect, offset: 0x01fd3cc8, size: 185 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
var defaultImport2;
|
||||
var openLazy;
|
||||
let value = environment.__proto__;
|
||||
importDefault(dependencyMap[10]).dispatch({type: 'SAFETY_HUB_APPEAL_SIGNAL_SELECT', signal: a0});
|
||||
if (isDsaEligible && a0 === AppealIngestionSignal.SOMETHING_ELSE) {
|
||||
defaultImport2 = importDefault(dependencyMap[11]);
|
||||
openLazy = defaultImport2.openLazy;
|
||||
value = require(dependencyMap[13]);
|
||||
value = value(dependencyMap[12], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport2, [value, 'AppealIngestionFreeTextAppealReasonActionSheet',
|
||||
{onSave: onSave,
|
||||
onClose: onClose_88072}]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun88073(a0, a1) { // fn#88073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11681:1935, offset: 0x01fd3e03, size: 99 bytes, params: 3, frame: 16
|
||||
const value = environment.__proto__;
|
||||
return (
|
||||
<AppealSignalRadioRow
|
||||
signal={a0}
|
||||
selected={a0 === env0_2}
|
||||
rowStyle={styles.formRow}
|
||||
onSelect={handleAppealSignalSelect}
|
||||
key={'formrow-' + a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function handleAppealSignalSelectOnSave(a0) { // fn#88071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11681:1295, owner: AppealIngestionCollectSignal.handleAppealSignalSelect.onSave, offset: 0x01fd3d81, size: 86 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAFETY_HUB_APPEAL_SIGNAL_CUSTOM_INPUT_CHANGE',
|
||||
userInput: a0});
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('AppealIngestionFreeTextAppealReasonActionSheet');
|
||||
}
|
||||
|
||||
function handleAppealSignalSelectOnClose() { // fn#88072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11681:1468, owner: AppealIngestionCollectSignal.handleAppealSignalSelect.onClose, offset: 0x01fd3dd7, size: 44 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('AppealIngestionFreeTextAppealReasonActionSheet');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/* Metro module 11497; source: modules/safety_hub/native/AppealIngestionConfirmSubmission.tsx; dependencies: [31, 27, 11473, 661, 33, 4501, 566, 11479, 1244, 11489, 11498, 5266, 4573, 4080, 11496, 1962, 694, 11492, 11493, 2] */
|
||||
function _fun88078(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:6, offset: 0x01fd430a, size: 266 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).EMPTY_STRING_SNOWFLAKE_ID;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
|
||||
'paddingHorizontal': 16}, detailsAction: {marginBottom: 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionConfirmSubmission.tsx');
|
||||
exports.default = AppealIngestionConfirmSubmission;
|
||||
}
|
||||
|
||||
function AppealIngestionConfirmSubmission({isDsaEligible}) { // fn#88079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:397, offset: 0x01fd4414, size: 821 bytes, params: 2, frame: 31
|
||||
const styles = useStyles();
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value3 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification(Reflect.apply(useStateFromStores,
|
||||
fluxModule, [[SafetyHubStore], function() {
|
||||
return SafetyHubStore.getAppealClassificationId();
|
||||
}]) ?? EMPTY_STRING_SNOWFLAKE_ID);
|
||||
const appealSignal = fluxModule.useStateFromStores([SafetyHubStore], function() {
|
||||
return SafetyHubStore.getAppealSignal();
|
||||
});
|
||||
const freeTextAppealReason = fluxModule.useStateFromStores([SafetyHubStore], function() {
|
||||
return SafetyHubStore.getFreeTextAppealReason();
|
||||
});
|
||||
const r14 = value3.classification?.flagged_content ?? [];
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['C5q+pW']);
|
||||
const value5 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['G2g/g5']);
|
||||
const AppealIngestionModalScreen = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalScreen;
|
||||
const AppealIngestionModalHeader = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalHeader;
|
||||
const appealIngestionModalHeader = <AppealIngestionModalHeader headerText={value4} subHeaderText={value5} />;
|
||||
const items3 = [((Component) => <Component reasons={[(require(5266) /* metro dependency 5266: SafetyHubUtils */).getAppealSignalDisplayText(appealSignal),
|
||||
freeTextAppealReason].filter(function(a0) {
|
||||
return a0.length > 0;
|
||||
})} />)(importDefault(11498) /* metro dependency 11498: AppealIngestionBreadcrumbs */)];
|
||||
items3[1] = isDsaEligible && ((Text) => <Text variant="heading-md/normal" color="text-link" style={styles.detailsAction} onPress={onPress_88084}>{freeTextAppealReason.length > 0 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tnE3bZ) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uoQFIp)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
items3[2] = r14.length > 0 && ((Component) => <Component flaggedContent={r14} />)(importDefault(11492) /* metro dependency 11492: AppealIngestionActivitySummary */);
|
||||
items3[3] = ((Component) => <Component classification={value3.classification} />)(importDefault(11493) /* metro dependency 11493: AppealIngestionPolicySummary */);
|
||||
return (
|
||||
<AppealIngestionModalScreen>
|
||||
{appealIngestionModalHeader}
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
</AppealIngestionModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function AppealIngestionConfirmSubmissionOnPress() { // fn#88084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:1217, owner: AppealIngestionConfirmSubmission.onPress, offset: 0x01fd476f, size: 108 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[13]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[15]);
|
||||
value = value(dependencyMap[14], dependencyMap.paths);
|
||||
return Reflect.apply(openLazy, defaultImport, [value, 'AppealIngestionFreeTextAppealReasonActionSheet',
|
||||
{onSave: onSave, onClose: onClose_88086}]);
|
||||
}
|
||||
|
||||
function onPressOnSave_88085(a0) { // fn#88085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:1320, owner: AppealIngestionConfirmSubmission.onPress.onSave, offset: 0x01fd47db, size: 86 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAFETY_HUB_APPEAL_SIGNAL_CUSTOM_INPUT_CHANGE',
|
||||
userInput: a0});
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('AppealIngestionFreeTextAppealReasonActionSheet');
|
||||
}
|
||||
|
||||
function onPressOnClose_88086() { // fn#88086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11683:1493, owner: AppealIngestionConfirmSubmission.onPress.onClose, offset: 0x01fd4831, size: 44 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('AppealIngestionFreeTextAppealReasonActionSheet');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Metro module 11494; source: modules/safety_hub/native/AppealIngestionExternalLink.tsx; dependencies: [31, 27, 33, 4501, 697, 5278, 3853, 4573, 1305, 8164, 2] */
|
||||
function _fun88063(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11680:6, offset: 0x01fd35a2, size: 356 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_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let 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;
|
||||
object4 = {};
|
||||
const object5 = {marginBottom: 8};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object4.childButton = object5;
|
||||
const object6 = {'minHeight': 60, 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'flex-start',
|
||||
'backgroundColor': null, 'paddingVertical': 16, 'paddingStart': 16, 'paddingEnd': 8};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object4.childContainer = object6;
|
||||
object4.childButtonText = {'flex': 1, 'lineHeight': 20};
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
object4.chevron = {color: INTERACTIVE_TEXT_DEFAULT};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionExternalLink.tsx');
|
||||
exports.default = AppealIngestionExternalLink;
|
||||
}
|
||||
|
||||
function AppealIngestionExternalLink({text, url, onPress}) { // fn#88064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11680:659, offset: 0x01fd3706, size: 265 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text2 = <Text style={styles.childButtonText} variant="text-md/semibold" color="mobile-text-heading-primary">{text}</Text>;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
return (
|
||||
<PressableHighlight
|
||||
style={styles.childButton}
|
||||
accessibilityRole="button"
|
||||
onPress={function() {
|
||||
if (onPress != null) {
|
||||
onPress();
|
||||
}
|
||||
importDefault(dependencyMap[6]).openURL(url);
|
||||
}}
|
||||
>
|
||||
<View style={styles.childContainer}>
|
||||
{text2}
|
||||
<Icon source={require(8164) /* metro dependency 8164 */} color={styles.chevron.color} />
|
||||
</View>
|
||||
</PressableHighlight>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Metro module 11496; source: modules/safety_hub/native/AppealIngestionFreeTextAppealReasonActionSheet.tsx; dependencies: [57, 31, 27, 11473, 33, 4501, 697, 566, 1244, 6275, 4572, 5278, 5312, 11489, 7681, 4573, 4578, 2] */
|
||||
function _fun88074(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11682:6, offset: 0x01fd3e66, size: 329 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
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 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{footerText: {textAlign: 'center'}, textArea: {'marginTop': -16,
|
||||
'marginBottom': 36}, separator: {'height': 1, 'backgroundColor': null, 'marginHorizontal': -16,
|
||||
backgroundColor: BORDER_SUBTLE}, closeIcon: {'alignSelf': 'flex-end', 'flexDirection': 'row',
|
||||
'marginBottom': -26}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionFreeTextAppealReasonActionSheet.tsx');
|
||||
exports.default = AppealIngestionFreeTextAppealReasonActionSheet;
|
||||
}
|
||||
|
||||
function AppealIngestionFreeTextAppealReasonActionSheet({onSave, onClose}) { // fn#88075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11682:545, offset: 0x01fd3faf, size: 840 bytes, params: 2, frame: 32
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const freeTextAppealReason = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getFreeTextAppealReason();
|
||||
});
|
||||
const [property, property2] = env0_2(env0_3.useState(freeTextAppealReason), 2);
|
||||
const r20 = freeTextAppealReason === '' ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.uoQFIp) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tnE3bZ);
|
||||
const value6 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Rk+uJx']);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
|
||||
const items2 = [<PressableOpacity onPress={onClose} style={styles.closeIcon}><XSmallIcon size="md" /></PressableOpacity>];
|
||||
const AppealIngestionModalHeader = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalHeader;
|
||||
items2[1] = <AppealIngestionModalHeader headerText={r20} subHeaderText={value6} />;
|
||||
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
|
||||
items2[2] = <TextArea maxLength={1024} placeholder={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bQrZIN)} containerStyle={styles.textArea} value={property} onChange={property2} />;
|
||||
items2[3] = <View style={styles.separator} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[4] = <Text variant="text-xs/medium" color="text-default" style={styles.footerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xfNY3L)}</Text>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[5] = <Button onPress={onPress_88077} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])} />;
|
||||
return (
|
||||
<BottomSheet startExpanded>
|
||||
<Stack spacing={16}>
|
||||
{items2}
|
||||
</Stack>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,434 @@
|
||||
/* Metro module 11489; source: modules/safety_hub/native/AppealIngestionModal.tsx; dependencies: [5, 57, 31, 27, 11473, 5267, 661, 33, 4501, 697, 4573, 566, 11479, 1484, 5268, 11488, 11480, 5266, 6618, 1244, 4578, 5282, 11490, 480, 11495, 11497, 11499, 11501, 11502, 6518, 5280, 2] */
|
||||
function _fun88020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:6, offset: 0x01fd1aa4, size: 535 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_5 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_6 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_7 = (require(27) /* metro dependency 27 */).View;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
let value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_9 = value.APPEAL_INGESTION_IMPRESSION_PROPERTIES;
|
||||
const env0_10 = value.AppealIngestionSections;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).EMPTY_STRING_SNOWFLAKE_ID;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
const env0_14 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {flex: 1, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.headerContainer = {'alignSelf': 'stretch', 'marginTop': 16, 'marginBottom': 8, 'paddingHorizontal': 16};
|
||||
object2.header = {'marginBottom': 8, 'textAlign': 'center'};
|
||||
object2.subheader = {'lineHeight': 20, 'marginBottom': 8, 'textAlign': 'center'};
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.separator = {'height': 1, 'backgroundColor': null, 'marginVertical': 24, backgroundColor: BORDER_SUBTLE};
|
||||
object2.footerContainer = {marginBottom: 16};
|
||||
object2.footerText = {'marginBottom': 16, 'textAlign': 'center'};
|
||||
object2.footerButton = {paddingHorizontal: 16};
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionModal.tsx');
|
||||
exports.default = AppealIngestionModal;
|
||||
exports.AppealIngestionModalHeader = AppealIngestionModalHeader;
|
||||
exports.AppealIngestionModalScreen = AppealIngestionModalScreen;
|
||||
}
|
||||
|
||||
function getHeader(a0) { // fn#88021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:796, offset: 0x01fd1cbb, size: 58 bytes, params: 2, frame: 14
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return <Text variant="text-md/normal" />;
|
||||
}
|
||||
|
||||
function AppealIngestionModal({classificationId}) { // fn#88022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:975, offset: 0x01fd1cf5, size: 276 bytes, params: 2, frame: 18
|
||||
const value3 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification(classificationId);
|
||||
const env0_0 = value3.isDsaEligible;
|
||||
if (value3.classification?.is_spam) {
|
||||
}
|
||||
if (value3.classification?.is_coppa) {
|
||||
}
|
||||
const value6 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(function() {
|
||||
return _fun88024(isDsaEligible, is_spam, is_coppa);
|
||||
});
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const SPEED_BUMP = AppealIngestionSections.SPEED_BUMP;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
initialRouteName={SPEED_BUMP}
|
||||
screens={value6}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
headerTitleAlign="center"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function AppealIngestionModalHeader({headerText, subHeaderText}) { // fn#88037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:2802, offset: 0x01fd2200, size: 246 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const items2 = [headerText != null && headerText !== '' && ((Text) => <Text style={styles.header} variant="heading-xl/extrabold" color="mobile-text-heading-primary" accessibilityRole="header">{headerText}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
|
||||
items2[1] = subHeaderText != null && subHeaderText.length > 0 ? ((Text) => <Text style={styles.subheader} variant="text-md/medium" color="text-default">{subHeaderText}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : null;
|
||||
return (
|
||||
<View style={styles.headerContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function AppealIngestionModalScreen({children}) { // fn#88038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:3234, offset: 0x01fd22f6, size: 1277 bytes, params: 2, frame: 39
|
||||
var r11;
|
||||
var r7;
|
||||
var SafeAreaPaddingView;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var object5;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var jsxRuntimeEnv0_14Binding;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items3;
|
||||
var object9;
|
||||
const env0_5 = undefined;
|
||||
let env0_6 = undefined;
|
||||
const styles = useStyles();
|
||||
const isSubmitting = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getIsSubmitting();
|
||||
});
|
||||
const value3 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubAppealSignal();
|
||||
const freeTextAppealReason = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getFreeTextAppealReason();
|
||||
});
|
||||
const appealClassificationId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getAppealClassificationId();
|
||||
});
|
||||
const value4 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification(appealClassificationId ?? EMPTY_STRING_SNOWFLAKE_ID);
|
||||
let is_spam = value4.classification?.is_spam;
|
||||
is_spam = !!is_spam && is_spam;
|
||||
let is_coppa = value4.classification?.is_coppa;
|
||||
is_coppa = !!is_coppa && is_coppa;
|
||||
const appeal_ingestion_type = value4.classification?.appeal_ingestion_type;
|
||||
const value7 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
let r2 = appeal_ingestion_type != null && appeal_ingestion_type !== (require(5268) /* metro dependency 5268: SafetyHubModels */).AppealIngestionType.IN_APP;
|
||||
r2 = !r2 ? is_coppa : r2;
|
||||
r2 = !r2 ? is_spam : r2;
|
||||
const value10 = !r2;
|
||||
const binding = env0_6;
|
||||
let useState = binding.useState;
|
||||
const value11 = Reflect.apply(useState, binding, ['']);
|
||||
const binding2 = env0_5;
|
||||
const value12 = binding2(value11, 2);
|
||||
const property = value12[0];
|
||||
const env0_4 = value12[1];
|
||||
useState = binding.useState;
|
||||
const value13 = binding2(Reflect.apply(useState, binding, ['']), 2);
|
||||
const property2 = value13[0];
|
||||
env0_6 = value13[1];
|
||||
binding.useEffect(_fun88042, [value7]);
|
||||
const value14 = binding.useCallback(_fun88045, [value7, property2]);
|
||||
const value16 = binding.useCallback(env0_4(_fun88047), [appealClassificationId, value3, freeTextAppealReason,
|
||||
value14]);
|
||||
const view = <View style={styles.separator} />;
|
||||
if (r2) {
|
||||
r7 = value10;
|
||||
} else {
|
||||
SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
var safeAreaPaddingViewProps = {bottom: true, style: styles.footerButton};
|
||||
if (property2 === AppealIngestionSections.CONFIRM_SUBMISSION) {
|
||||
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
items3 = [<Text variant="text-xs/medium" color="text-default" style={styles.footerText}>{intl.string(t['d6qgY/'])}</Text>];
|
||||
items3[1] = property !== '' && <Text variant="text-xs/medium" color="text-feedback-critical" style={styles.footerText}>{property}</Text>;
|
||||
items3[2] = <Button onPress={value16} text={intl.string(t.geKm7t)} variant="destructive" loading={isSubmitting} disabled={isSubmitting} />;
|
||||
r11 = <>{items3}</>;
|
||||
} else {
|
||||
r11 = <Button onPress={value14} text={property2 === AppealIngestionSections.REQUEST_SENT || property2 === AppealIngestionSections.THANKS ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XiOHRX)} />;
|
||||
}
|
||||
r7 = <SafeAreaPaddingView {...safeAreaPaddingViewProps}>{r11}</SafeAreaPaddingView>;
|
||||
}
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{children}
|
||||
<View style={styles.footerContainer}>
|
||||
{view}
|
||||
{r7}
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun88023() { // fn#88023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:1211, offset: 0x01fd1e09, size: 35 bytes, params: 1, frame: 15
|
||||
return getScreens_88024(isDsaEligible, is_spam, is_coppa);
|
||||
}
|
||||
|
||||
function _fun88042() { // fn#88042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:3935, offset: 0x01fd282e, size: 45 bytes, params: 1, frame: 14
|
||||
const env0_0 = env0_3.addListener('state', _fun88043);
|
||||
return _fun88044;
|
||||
}
|
||||
|
||||
function _fun88045() { // fn#88045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:4111, offset: 0x01fd28ca, size: 177 bytes, params: 1, frame: 13
|
||||
let binding = env0_5;
|
||||
const SPEED_BUMP = AppealIngestionSections.SPEED_BUMP;
|
||||
if (binding === SPEED_BUMP) {
|
||||
binding = env0_3;
|
||||
binding.push(AppealIngestionSections.COLLECT_SIGNAL);
|
||||
} else {
|
||||
binding = env0_5;
|
||||
if (binding === AppealIngestionSections.COLLECT_SIGNAL) {
|
||||
binding = env0_3;
|
||||
binding.push(AppealIngestionSections.CONFIRM_SUBMISSION);
|
||||
} else {
|
||||
binding = env0_5;
|
||||
if (binding === AppealIngestionSections.CONFIRM_SUBMISSION) {
|
||||
binding = env0_3;
|
||||
binding.push(AppealIngestionSections.REQUEST_SENT);
|
||||
} else {
|
||||
(importDefault(11488) /* metro dependency 11488: AppealIngestionModalActionCreators */).close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun88047() { // fn#88047, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:4301, offset: 0x01fd2986, size: 187 bytes, params: 1, frame: 20
|
||||
var code;
|
||||
var value3;
|
||||
var binding;
|
||||
var value4;
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var requestReview;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var error;
|
||||
var value9;
|
||||
var binding3;
|
||||
var value10;
|
||||
var getRequestReviewErrorFromCode;
|
||||
var body;
|
||||
let value = undefined;
|
||||
if (true) {
|
||||
reduciblePort25: while (true) {
|
||||
exceptionLanding22: while (true) {
|
||||
value = undefined;
|
||||
value3 = environment.__proto__;
|
||||
if (importAll === null) {
|
||||
break reduciblePort25;
|
||||
}
|
||||
try {
|
||||
binding = env1_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
binding('');
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
value4 = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
property = binding2[16];
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
requestReview = value5.requestReview;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(requestReview, value5, [importAll, require, importDefault]);
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
try {
|
||||
View();
|
||||
} catch (error) {
|
||||
break exceptionLanding22;
|
||||
}
|
||||
break reduciblePort25;
|
||||
}
|
||||
binding = env1_4;
|
||||
value9 = environment.__proto__.__proto__;
|
||||
binding3 = env2_0;
|
||||
value10 = binding3(env2_3[17]);
|
||||
getRequestReviewErrorFromCode = value10.getRequestReviewErrorFromCode;
|
||||
body = error.body;
|
||||
reducibleJoin24: while (true) {
|
||||
if (body == null) {
|
||||
code = value;
|
||||
break reducibleJoin24;
|
||||
}
|
||||
code = body.code;
|
||||
break reducibleJoin24;
|
||||
}
|
||||
binding(Reflect.apply(getRequestReviewErrorFromCode, value10, [code]));
|
||||
break reduciblePort25;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function getScreens_88024(a0, a1, a2) { // fn#88024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:1215, offset: 0x01fd1e2c, size: 677 bytes, params: 4, frame: 24
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const object8 = {};
|
||||
const value = environment.__proto__.__proto__;
|
||||
const SPEED_BUMP = AppealIngestionSections.SPEED_BUMP;
|
||||
const object9 = {};
|
||||
object9.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(11488) /* metro dependency 11488: AppealIngestionModalActionCreators */).close);
|
||||
object9.headerTitle = function() {
|
||||
return getHeader();
|
||||
};
|
||||
object9.render = render_88026;
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const APPEAL_INGESTION_SPEED_BUMP = ImpressionNames.APPEAL_INGESTION_SPEED_BUMP;
|
||||
object9.impressionName = APPEAL_INGESTION_SPEED_BUMP;
|
||||
object9.impressionProperties = APPEAL_INGESTION_IMPRESSION_PROPERTIES;
|
||||
object8[SPEED_BUMP] = object9;
|
||||
const COLLECT_SIGNAL = AppealIngestionSections.COLLECT_SIGNAL;
|
||||
const object10 = {};
|
||||
object10.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
|
||||
object10.headerTitle = function() {
|
||||
return getHeader();
|
||||
};
|
||||
object10.render = render_88028;
|
||||
const APPEAL_INGESTION_COLLECT_SIGNAL = ImpressionNames.APPEAL_INGESTION_COLLECT_SIGNAL;
|
||||
object10.impressionName = APPEAL_INGESTION_COLLECT_SIGNAL;
|
||||
object10.impressionProperties = APPEAL_INGESTION_IMPRESSION_PROPERTIES;
|
||||
object8[COLLECT_SIGNAL] = object10;
|
||||
const CONFIRM_SUBMISSION = AppealIngestionSections.CONFIRM_SUBMISSION;
|
||||
const object11 = {};
|
||||
object11.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
|
||||
object11.headerTitle = function() {
|
||||
return getHeader();
|
||||
};
|
||||
object11.render = render_88030;
|
||||
const APPEAL_INGESTION_CONFIRM_SUBMISSION = ImpressionNames.APPEAL_INGESTION_CONFIRM_SUBMISSION;
|
||||
object11.impressionName = APPEAL_INGESTION_CONFIRM_SUBMISSION;
|
||||
object11.impressionProperties = APPEAL_INGESTION_IMPRESSION_PROPERTIES;
|
||||
object8[CONFIRM_SUBMISSION] = object11;
|
||||
const REQUEST_SENT = AppealIngestionSections.REQUEST_SENT;
|
||||
const object12 = {};
|
||||
object12.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(11488) /* metro dependency 11488: AppealIngestionModalActionCreators */).close);
|
||||
object12.headerTitle = function() {
|
||||
return getHeader();
|
||||
};
|
||||
object12.render = render_88032;
|
||||
const APPEAL_INGESTION_REQUEST_SENT = ImpressionNames.APPEAL_INGESTION_REQUEST_SENT;
|
||||
object12.impressionName = APPEAL_INGESTION_REQUEST_SENT;
|
||||
object12.impressionProperties = APPEAL_INGESTION_IMPRESSION_PROPERTIES;
|
||||
object8[REQUEST_SENT] = object12;
|
||||
const THANKS = AppealIngestionSections.THANKS;
|
||||
const object13 = {};
|
||||
object13.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(11488) /* metro dependency 11488: AppealIngestionModalActionCreators */).close);
|
||||
object13.headerTitle = function() {
|
||||
return getHeader();
|
||||
};
|
||||
object13.render = render_88034;
|
||||
const APPEAL_INGESTION_THANKS = ImpressionNames.APPEAL_INGESTION_THANKS;
|
||||
object13.impressionName = APPEAL_INGESTION_THANKS;
|
||||
object13.impressionProperties = APPEAL_INGESTION_IMPRESSION_PROPERTIES;
|
||||
object8[THANKS] = object13;
|
||||
const SPAM = AppealIngestionSections.SPAM;
|
||||
const object14 = {};
|
||||
object14.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(11488) /* metro dependency 11488: AppealIngestionModalActionCreators */).close);
|
||||
object14.headerTitle = function() {
|
||||
return getHeader();
|
||||
};
|
||||
object14.render = render_88036;
|
||||
const APPEAL_INGESTION_SPAM = ImpressionNames.APPEAL_INGESTION_SPAM;
|
||||
object14.impressionName = APPEAL_INGESTION_SPAM;
|
||||
object14.impressionProperties = APPEAL_INGESTION_IMPRESSION_PROPERTIES;
|
||||
object8[SPAM] = object14;
|
||||
return object8;
|
||||
}
|
||||
|
||||
function _fun88043() { // fn#88043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:3969, offset: 0x01fd285b, size: 77 bytes, params: 1, frame: 12
|
||||
let binding = env1_3;
|
||||
let getState = binding.getState;
|
||||
const routes = Reflect.apply(getState, binding, []).routes;
|
||||
binding = env1_3;
|
||||
getState = binding.getState;
|
||||
env1_6(routes[Reflect.apply(getState, binding, []).routes.length - 1].name);
|
||||
}
|
||||
|
||||
function _fun88044() { // fn#88044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:4049, offset: 0x01fd28a8, size: 34 bytes, params: 1, frame: 13
|
||||
env1_3.removeListener('state', env0_0);
|
||||
}
|
||||
|
||||
function getScreens_88024Render() { // fn#88026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:1357, owner: getScreens_88024.render, offset: 0x01fd20e0, size: 69 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component isDsaEligible={env0_0} isSpam={require} isCoppa={importDefault} />)(importDefault(11490) /* metro dependency 11490: AppealIngestionSpeedBump */);
|
||||
}
|
||||
|
||||
function getScreens_88024Render_88028() { // fn#88028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:1599, owner: getScreens_88024.render, offset: 0x01fd2125, size: 51 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component isDsaEligible={env0_0} />)(importDefault(11495) /* metro dependency 11495: AppealIngestionCollectSignal */);
|
||||
}
|
||||
|
||||
function getScreens_88024Render_88030() { // fn#88030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:1830, owner: getScreens_88024.render, offset: 0x01fd2158, size: 51 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component isDsaEligible={env0_0} />)(importDefault(11497) /* metro dependency 11497: AppealIngestionConfirmSubmission */);
|
||||
}
|
||||
|
||||
function getScreens_88024Render_88032() { // fn#88032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:2074, owner: getScreens_88024.render, offset: 0x01fd218b, size: 39 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component />)(importDefault(11499) /* metro dependency 11499: AppealIngestionRequestSent */);
|
||||
}
|
||||
|
||||
function getScreens_88024Render_88034() { // fn#88034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:2291, owner: getScreens_88024.render, offset: 0x01fd21b2, size: 39 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component />)(importDefault(11501) /* metro dependency 11501: AppealIngestionThanks */);
|
||||
}
|
||||
|
||||
function getScreens_88024Render_88036() { // fn#88036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11675:2500, owner: getScreens_88024.render, offset: 0x01fd21d9, size: 39 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component />)(importDefault(11502) /* metro dependency 11502: AppealIngestionSpam */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Metro module 11488; source: modules/safety_hub/native/AppealIngestionModalActionCreators.tsx; dependencies: [694, 5080, 11489, 1962, 2] */
|
||||
function _fun88017(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11674:6, offset: 0x01fd195e, size: 122 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {open: open_88018, close: close_88019};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function open_88018(a0) { // fn#88018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11674:130, offset: 0x01fd19d8, size: 127 bytes, params: 2, frame: 19
|
||||
importDefault(dependencyMap[0]).dispatch({type: 'SAFETY_HUB_APPEAL_OPEN', classificationId: a0.classificationId});
|
||||
const defaultImport2 = importDefault(dependencyMap[1]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
let value = require(dependencyMap[3]);
|
||||
value = value(dependencyMap[2], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, a0, 'APPEAL_INGESTION_MODAL_KEY']);
|
||||
}
|
||||
|
||||
function close_88019() { // fn#88019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11674:269, offset: 0x01fd1a57, size: 77 bytes, params: 1, frame: 14
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('APPEAL_INGESTION_MODAL_KEY');
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SAFETY_HUB_APPEAL_CLOSE'});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/* Metro module 11493; source: modules/safety_hub/native/AppealIngestionPolicySummary.tsx; dependencies: [31, 27, 33, 4501, 697, 5266, 4000, 4573, 1244, 2] */
|
||||
function _fun88061(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11679:6, offset: 0x01fd3320, size: 299 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
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 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.sectionTitle = {marginBottom: 8};
|
||||
object2.policy = {marginBottom: 16};
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.borderColor = {color: MOBILE_TEXT_HEADING_PRIMARY};
|
||||
const object3 = {'marginTop': 8, 'justifyContent': 'flex-start', 'minHeight': 40, 'borderRadius': null,
|
||||
'borderWidth': 1, 'padding': 18};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.userContainer = object3;
|
||||
const env0_5 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionPolicySummary.tsx');
|
||||
exports.default = AppealIngestionPolicySummary;
|
||||
}
|
||||
|
||||
function AppealIngestionPolicySummary({classification}) { // fn#88062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11679:516, offset: 0x01fd344b, size: 343 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const safetyHubUtilsModule = require(5266) /* metro dependency 5266: SafetyHubUtils */;
|
||||
const value3 = safetyHubUtilsModule.capitalizeText(classification?.description);
|
||||
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
const value4 = colorUtilsModule.hexWithOpacity(styles.borderColor.color, 0.08);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const text = <Text style={styles.sectionTitle} variant="text-sm/bold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xsdcxh)}</Text>;
|
||||
const userContainer = styles.userContainer;
|
||||
return (
|
||||
<View style={styles.policy}>
|
||||
{text}
|
||||
<View style={[userContainer, {borderColor: value4}]}>
|
||||
<Text variant="text-md/semibold">
|
||||
{value3}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/* Metro module 11499; source: modules/safety_hub/native/AppealIngestionRequestSent.tsx; dependencies: [31, 27, 5267, 33, 4501, 11491, 1244, 11489, 11500, 4573, 11494, 2] */
|
||||
function _fun88090(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11685:6, offset: 0x01fd4b5f, size: 290 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = value.Image;
|
||||
value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_5 = value.SafetyHubAnalyticsActions;
|
||||
const env0_6 = value.SafetyHubLinks;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
|
||||
'padding': 8}, actionsHeader: {'marginTop': 31, 'marginBottom': 16}, checkboxPng: {'width': 86, 'height': 78.33,
|
||||
'marginLeft': -2, 'alignSelf': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionRequestSent.tsx');
|
||||
exports.default = AppealIngestionRequestSent;
|
||||
}
|
||||
|
||||
function AppealIngestionRequestSent() { // fn#88091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11685:489, offset: 0x01fd4c81, size: 588 bytes, params: 1, frame: 29
|
||||
const env0_0 = (require(11491) /* metro dependency 11491: useEmitAppealIngestionEvent */).useEmitAppealIngestionEvent();
|
||||
const styles = useStyles();
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const QMbTSu = (require(1244) /* metro dependency 1244: indexNative */).t.QMbTSu;
|
||||
const value2 = Reflect.apply(string, intl, [QMbTSu]);
|
||||
string = intl.string;
|
||||
const Qdx8AP = (require(1244) /* metro dependency 1244: indexNative */).t.Qdx8AP;
|
||||
const value3 = Reflect.apply(string, intl, [Qdx8AP]);
|
||||
const AppealIngestionModalScreen = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalScreen;
|
||||
const items2 = [<Image source={importDefault(11500) /* metro dependency 11500 */} style={styles.checkboxPng} />];
|
||||
const AppealIngestionModalHeader = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalHeader;
|
||||
items2[1] = <AppealIngestionModalHeader headerText={value2} subHeaderText={value3} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[2] = <Text variant="heading-md/bold" color="mobile-text-heading-primary" style={styles.actionsHeader}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9BRc1N'])}</Text>;
|
||||
const AppealIngestionExternalLink2 = importDefault(11494) /* metro dependency 11494: AppealIngestionExternalLink */;
|
||||
string = intl.string;
|
||||
const PxL38B = (require(1244) /* metro dependency 1244: indexNative */).t.PxL38B;
|
||||
const COMMUNITY_GUIDELINES = SafetyHubLinks.COMMUNITY_GUIDELINES;
|
||||
items2[3] = <AppealIngestionExternalLink2 text={Reflect.apply(string, intl,
|
||||
[PxL38B])} url={COMMUNITY_GUIDELINES} onPress={onPress_88092} />;
|
||||
const AppealIngestionExternalLink = AppealIngestionExternalLink2;
|
||||
string = intl.string;
|
||||
const qC3XKa = (require(1244) /* metro dependency 1244: indexNative */).t.qC3XKa;
|
||||
const WARNING_SYSTEM_HELPCENTER_LINK = SafetyHubLinks.WARNING_SYSTEM_HELPCENTER_LINK;
|
||||
items2[4] = <AppealIngestionExternalLink text={Reflect.apply(string, intl,
|
||||
[qC3XKa])} url={WARNING_SYSTEM_HELPCENTER_LINK} onPress={onPress_88093} />;
|
||||
return (
|
||||
<AppealIngestionModalScreen>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</AppealIngestionModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function AppealIngestionRequestSentOnPress() { // fn#88092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11685:1097, owner: AppealIngestionRequestSent.onPress, offset: 0x01fd4ecd, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_0;
|
||||
const ClickCommunityGuidelinesLink = SafetyHubAnalyticsActions.ClickCommunityGuidelinesLink;
|
||||
return binding(ClickCommunityGuidelinesLink);
|
||||
}
|
||||
|
||||
function AppealIngestionRequestSentOnPress_88093() { // fn#88093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11685:1237, owner: AppealIngestionRequestSent.onPress, offset: 0x01fd4eea, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_0;
|
||||
const ClickWarningSystemHelpcenterLink = SafetyHubAnalyticsActions.ClickWarningSystemHelpcenterLink;
|
||||
return binding(ClickWarningSystemHelpcenterLink);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 11502; source: modules/safety_hub/native/AppealIngestionSpam.tsx; dependencies: [31, 27, 33, 4501, 11489, 6618, 1305, 2] */
|
||||
function _fun88097(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11688:6, offset: 0x01fd50b6, size: 198 bytes, params: 8, frame: 19
|
||||
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 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
|
||||
'alignItems': 'center', 'justifyContent': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionSpam.tsx');
|
||||
exports.default = AppealIngestionSpam;
|
||||
}
|
||||
|
||||
function AppealIngestionSpam() { // fn#88098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11688:315, offset: 0x01fd517c, size: 163 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const AppealIngestionModalScreen = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalScreen;
|
||||
const object = {};
|
||||
let container = styles.container;
|
||||
object.style = container;
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
container = styles.container;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<AppealIngestionModalScreen>
|
||||
<View {...object}>
|
||||
<SafeAreaPaddingView bottom style={container}>
|
||||
<LegacyText>
|
||||
{'TODO - SPAM'}
|
||||
</LegacyText>
|
||||
</SafeAreaPaddingView>
|
||||
</View>
|
||||
</AppealIngestionModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/* Metro module 11490; source: modules/safety_hub/native/AppealIngestionSpeedBump.tsx; dependencies: [31, 27, 11473, 5267, 661, 33, 4501, 566, 11479, 11491, 1244, 11489, 11492, 11493, 11494, 6766, 2] */
|
||||
function _fun88048(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:6, offset: 0x01fd2a41, size: 284 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
let value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_5 = value.SafetyHubAnalyticsActions;
|
||||
const env0_6 = value.SafetyHubLinks;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).EMPTY_STRING_SNOWFLAKE_ID;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
|
||||
'alignSelf': 'stretch', 'paddingHorizontal': 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionSpeedBump.tsx');
|
||||
exports.default = AppealIngestionSpeedBump;
|
||||
}
|
||||
|
||||
function AppealIngestionSpeedBump({isCoppa, isSpam}) { // fn#88049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:436, offset: 0x01fd2b5d, size: 1002 bytes, params: 2, frame: 32
|
||||
const styles = useStyles();
|
||||
const value3 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification((require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getAppealClassificationId();
|
||||
}) ?? EMPTY_STRING_SNOWFLAKE_ID);
|
||||
const env0_0 = (require(11491) /* metro dependency 11491: useEmitAppealIngestionEvent */).useEmitAppealIngestionEvent();
|
||||
const isDsaEligible = value3.isDsaEligible;
|
||||
const r15 = value3.classification?.explainer_link ?? '';
|
||||
const r19 = value3.classification?.flagged_content ?? [];
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const value5 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['C5q+pW']]);
|
||||
string = intl.string;
|
||||
const URt7VI = (require(1244) /* metro dependency 1244: indexNative */).t.URt7VI;
|
||||
const value6 = Reflect.apply(string, intl, [URt7VI]);
|
||||
const AppealIngestionModalScreen = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalScreen;
|
||||
const AppealIngestionModalHeader = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalHeader;
|
||||
const appealIngestionModalHeader = <AppealIngestionModalHeader headerText={value5} subHeaderText={value6} />;
|
||||
const items2 = [r19.length > 0 && ((Component) => <Component flaggedContent={r19} />)(importDefault(11492) /* metro dependency 11492: AppealIngestionActivitySummary */)];
|
||||
items2[1] = ((Component) => <Component classification={value3.classification} />)(importDefault(11493) /* metro dependency 11493: AppealIngestionPolicySummary */);
|
||||
items2[2] = isCoppa && ((Component) => <Component text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['gJs+kf'])} url={SafetyHubLinks.AGE_VERIFICATION_LINK} onPress={onPress_88051} />)(importDefault(11494) /* metro dependency 11494: AppealIngestionExternalLink */);
|
||||
items2[3] = isSpam && !isCoppa && ((Component) => <Component text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.NBsJvm)} url={SafetyHubLinks.SPAM_LINK} onPress={onPress_88052} />)(importDefault(11494) /* metro dependency 11494: AppealIngestionExternalLink */);
|
||||
items2[4] = !isCoppa && ((Component) => <Component text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Vtyn/7'])} url={r15} onPress={onPress_88053} />)(importDefault(11494) /* metro dependency 11494: AppealIngestionExternalLink */);
|
||||
items2[5] = isDsaEligible && ((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-xs/normal">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.WMUgCX,
|
||||
{})}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround);
|
||||
return (
|
||||
<AppealIngestionModalScreen>
|
||||
{appealIngestionModalHeader}
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</AppealIngestionModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
function AppealIngestionSpeedBumpOnPress() { // fn#88051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:1259, owner: AppealIngestionSpeedBump.onPress, offset: 0x01fd2f5a, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_0;
|
||||
const ClickAgeVerificationLink = SafetyHubAnalyticsActions.ClickAgeVerificationLink;
|
||||
return binding(ClickAgeVerificationLink);
|
||||
}
|
||||
|
||||
function AppealIngestionSpeedBumpOnPress_88052() { // fn#88052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:1383, owner: AppealIngestionSpeedBump.onPress, offset: 0x01fd2f77, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_0;
|
||||
const ClickSpamWebformLink = SafetyHubAnalyticsActions.ClickSpamWebformLink;
|
||||
return binding(ClickSpamWebformLink);
|
||||
}
|
||||
|
||||
function AppealIngestionSpeedBumpOnPress_88053() { // fn#88053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11676:1493, owner: AppealIngestionSpeedBump.onPress, offset: 0x01fd2f94, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_0;
|
||||
const ClickLearnMoreLink = SafetyHubAnalyticsActions.ClickLearnMoreLink;
|
||||
return binding(ClickLearnMoreLink);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 11501; source: modules/safety_hub/native/AppealIngestionThanks.tsx; dependencies: [31, 27, 33, 4501, 11489, 6618, 1305, 2] */
|
||||
function _fun88095(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11687:6, offset: 0x01fd4f4d, size: 198 bytes, params: 8, frame: 19
|
||||
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 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
|
||||
'alignItems': 'center', 'justifyContent': 'center'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AppealIngestionThanks.tsx');
|
||||
exports.default = AppealIngestionThanks;
|
||||
}
|
||||
|
||||
function AppealIngestionThanks() { // fn#88096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11687:317, offset: 0x01fd5013, size: 163 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const AppealIngestionModalScreen = (require(11489) /* metro dependency 11489: AppealIngestionModal */).AppealIngestionModalScreen;
|
||||
const object = {};
|
||||
let container = styles.container;
|
||||
object.style = container;
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
container = styles.container;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<AppealIngestionModalScreen>
|
||||
<View {...object}>
|
||||
<SafeAreaPaddingView bottom style={container}>
|
||||
<LegacyText>
|
||||
{'TODO - Thanks'}
|
||||
</LegacyText>
|
||||
</SafeAreaPaddingView>
|
||||
</View>
|
||||
</AppealIngestionModalScreen>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
/* Metro module 11487; source: modules/safety_hub/native/AutomatedUnderageAppealActionSheet.tsx; dependencies: [31, 27, 11473, 5267, 33, 4501, 697, 1244, 566, 1585, 11486, 5263, 5074, 4080, 6275, 6277, 4573, 6231, 6238, 3853, 4578, 11480, 6766, 2] */
|
||||
function _fun88007(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11673:6, offset: 0x01fd0ef1, size: 871 bytes, params: 8, frame: 24
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
let value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_6 = value.AGE_APPEAL_ACTION_SHEET_NAME;
|
||||
const env0_7 = value.SafetyHubLinks;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {flex: 1};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingTop = PX_8;
|
||||
object3.container = object4;
|
||||
object3.header = {alignItems: 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.content = {flex: 1, gap: PX_16};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.moreInfo = {gap: PX_4};
|
||||
const object5 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.marginTop = PX_12;
|
||||
object5.textAlign = 'center';
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object5.paddingBottom = PX_32;
|
||||
object3.learnMore = object5;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.footer = {marginTop: PX_8};
|
||||
const object7 = {'alignItems': 'center', 'justifyContent': 'center', 'width': 32, 'height': 32};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
|
||||
object7.backgroundColor = BACKGROUND_MOD_SUBTLE;
|
||||
object3.number = object7;
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object3]);
|
||||
object3 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object3.title = Reflect.apply(string, intl, [t['1+E7LP']]);
|
||||
object3.description = intl.string(t['BXiat/']);
|
||||
const items2 = [object3];
|
||||
items2[1] = {title: intl.string(t.iMQXtK), description: intl.string(t.oQ0vwu)};
|
||||
object3 = {title: intl.string(t['oY/z1Q'])};
|
||||
object3.description = intl.string(t.wtj02W);
|
||||
items2[2] = object3;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/AutomatedUnderageAppealActionSheet.tsx');
|
||||
exports.default = AutomatedUnderageAppealActionSheet;
|
||||
}
|
||||
|
||||
function AutomatedUnderageAppealActionSheet({onClose, classificationId}) { // fn#88008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11673:1035, offset: 0x01fd1258, size: 1245 bytes, params: 2, frame: 34
|
||||
const styles = useStyles();
|
||||
const ageVerificationWebviewUrl = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getAgeVerificationWebviewUrl();
|
||||
});
|
||||
const env0_3 = ageVerificationWebviewUrl;
|
||||
const isLoadingAgeVerification = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getIsLoadingAgeVerification();
|
||||
});
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const binding = env0_3;
|
||||
binding.useEffect(_fun88013, [ageVerificationWebviewUrl, binding.useCallback(_fun88012,
|
||||
[binding.useCallback(_fun88011, [onClose])])]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const value4 = 425 + bottom;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const value5 = value4 + PX_16;
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const object = {};
|
||||
copyDataProperties(object, styles.content, undefined);
|
||||
object['paddingBottom'] = bottom;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const items2 = [<View style={styles.header}><Text variant="heading-xl/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['9SDLnj']])}</Text><Text variant="heading-md/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['yvx//1'])}</Text></View>];
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
items2[1] = <View><TableRowGroup hasIcons>{env0_11.map(_fun88014)}</TableRowGroup></View>;
|
||||
const object2 = {};
|
||||
string = intl.string;
|
||||
const WPwp1b = (require(1244) /* metro dependency 1244: indexNative */).t.WPwp1b;
|
||||
object2.title = Reflect.apply(string, intl, [WPwp1b]);
|
||||
object2.hasIcons = false;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object3 = {'label': null, 'subLabel': null, 'onPress': null, 'arrow': true, 'start': true, 'end': true};
|
||||
string = intl.string;
|
||||
const N9WJMM = (require(1244) /* metro dependency 1244: indexNative */).t.N9WJMM;
|
||||
object3.label = Reflect.apply(string, intl, [N9WJMM]);
|
||||
string = intl.string;
|
||||
const NHq382 = (require(1244) /* metro dependency 1244: indexNative */).t.NHq382;
|
||||
object3.subLabel = Reflect.apply(string, intl, [NHq382]);
|
||||
object3.onPress = function() {
|
||||
return importDefault(dependencyMap[19]).openURL(SafetyHubLinks.AGE_VERIFICATION_LINK);
|
||||
};
|
||||
items2[2] = <View style={styles.moreInfo}><TableRowGroup {...object2}><TableRow {...object3} /></TableRowGroup></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const button = <Button onPress={onPress_88016} loading={isLoadingAgeVerification} disabled={isLoadingAgeVerification} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['54b8V0'])} />;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const format = intl.format;
|
||||
const ZbWsOF = (require(1244) /* metro dependency 1244: indexNative */).t.ZbWsOF;
|
||||
const LEARN_MORE_UU_APPEAL_LINK = SafetyHubLinks.LEARN_MORE_UU_APPEAL_LINK;
|
||||
items2[3] = <View style={styles.footer}>{button}<TextWithIOSLinkWorkaround variant="heading-sm/medium" color="text-subtle" style={styles.learnMore}>{Reflect.apply(format,
|
||||
intl, [ZbWsOF, {learnMoreLink: LEARN_MORE_UU_APPEAL_LINK}])}</TextWithIOSLinkWorkaround></View>;
|
||||
return (
|
||||
<BottomSheet scrollable startHeight={value5 + PX_32}>
|
||||
<BottomSheetScrollView style={styles.container}>
|
||||
<View style={object}>
|
||||
{items2}
|
||||
</View>
|
||||
</BottomSheetScrollView>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun88011() { // fn#88011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11673:1302, offset: 0x01fd175f, size: 60 bytes, params: 1, frame: 11
|
||||
if (onClose != null) {
|
||||
onClose();
|
||||
}
|
||||
const value = environment.__proto__;
|
||||
(importDefault(11486) /* metro dependency 11486: AutomatedUnderageAppealModalActionCreatorsNative */).close();
|
||||
}
|
||||
|
||||
function _fun88012() { // fn#88012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11673:1361, offset: 0x01fd179b, size: 67 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(importDefault(11486) /* metro dependency 11486: AutomatedUnderageAppealModalActionCreatorsNative */).success();
|
||||
env0_4();
|
||||
(importDefault(11486) /* metro dependency 11486: AutomatedUnderageAppealModalActionCreatorsNative */).start_verification_check();
|
||||
}
|
||||
|
||||
function _fun88013() { // fn#88013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11673:1452, offset: 0x01fd17de, size: 135 bytes, params: 1, frame: 17
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var showAgeVerification;
|
||||
var object2;
|
||||
if (ageVerificationWebviewUrl !== '') {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
|
||||
showAgeVerification = defaultImport.showAgeVerification;
|
||||
object2 = {};
|
||||
object2.webviewUrl = ageVerificationWebviewUrl;
|
||||
object2.onComplete = env0_5;
|
||||
object2.entryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint.AUTOMATED_UNDERAGE_APPEALS;
|
||||
Reflect.apply(showAgeVerification, defaultImport, [object2]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet(AGE_APPEAL_ACTION_SHEET_NAME);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun88014({title, description}, a1) { // fn#88014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11673:2208, offset: 0x01fd1865, size: 156 bytes, params: 3, frame: 20
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<TableRow
|
||||
label={title}
|
||||
subLabel={description}
|
||||
icon={<View style={styles.number}><Text variant="heading-md/semibold" color="text-brand">{a1 + 1}</Text></View>}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function AutomatedUnderageAppealActionSheetOnPress_88016() { // fn#88016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11673:2780, owner: AutomatedUnderageAppealActionSheet.onPress, offset: 0x01fd1931, size: 45 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(11480) /* metro dependency 11480: SafetyHubActionCreators */;
|
||||
return value.requestSuspendedUserAgeVerification(classificationId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,514 @@
|
||||
/* Metro module 11472; source: modules/safety_hub/native/ClassificationDetail.tsx; dependencies: [31, 27, 1949, 11473, 5267, 661, 33, 4501, 697, 4573, 5268, 1244, 566, 6766, 8792, 3853, 8036, 4578, 11479, 11481, 683, 6618, 11482, 5266, 11486, 4826, 4831, 11488, 2] */
|
||||
function _fun87823(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:6, offset: 0x01fcc742, size: 1085 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.ActivityIndicator;
|
||||
const env0_6 = value.ScrollView;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_9 = value.SafetyHubAnalyticsActionSource;
|
||||
const env0_10 = value.SafetyHubAnalyticsActions;
|
||||
const env0_11 = value.SafetyHubLinks;
|
||||
const env0_12 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsx;
|
||||
const env0_14 = value.jsxs;
|
||||
const env0_15 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.root = {backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
const object5 = {'display': 'flex', 'flexDirection': 'column', 'height': '100%'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object5.gap = PX_32;
|
||||
object2.container = object5;
|
||||
const object7 = {'display': 'flex', 'textAlign': 'center', 'alignItems': 'center', 'flexDirection': 'column'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object7.gap = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object7.marginBottom = PX_8;
|
||||
object2.header = object7;
|
||||
object2.headerText = {'textAlign': 'center', 'maxWidth': 260};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.sectionContainer = {display: 'flex', gap: PX_8};
|
||||
const object10 = {'display': 'flex', 'paddingLeft': null, 'flexDirection': 'column'};
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object10.paddingLeft = PX_4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.gap = PX_8;
|
||||
object2.actionsTaken = object10;
|
||||
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object2.classificationDetailContainer = {'display': 'flex', 'flexDirection': 'column', gap: PX_32};
|
||||
object2.letUsKnowContainer = {'display': 'flex', 'alignItems': 'center'};
|
||||
const object11 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center',
|
||||
'justifyContent': 'space-between'};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object11.gap = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object11.padding = PX_12;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object11.marginTop = PX_4;
|
||||
object11.flexShrink = 1;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object11.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object2.classificationPolicyCard = object11;
|
||||
const object12 = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'backgroundColor': null,
|
||||
'width': 32, 'height': 32};
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object12.backgroundColor = BACKGROUND_MOD_STRONG;
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
|
||||
object2.classificationPolicyCardIcon = object12;
|
||||
object2.classificationPolicyCardContent = {flex: 1};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.classificationActionDescription = {'display': 'flex', 'flexDirection': 'row', gap: PX_8};
|
||||
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object2.redirectButtonWrapper = {'width': 300, 'alignSelf': 'center', marginTop: PX_32};
|
||||
const env0_16 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/ClassificationDetail.tsx');
|
||||
exports.default = ConnectedClassificationDetail;
|
||||
}
|
||||
|
||||
function ClassificationHeader({classificationTypeText, guildMetadata}) { // fn#87824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:1754, offset: 0x01fccb7f, size: 168 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useMemo(_fun87825, [classificationTypeText, guildMetadata]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.header}>
|
||||
<Text
|
||||
variant="text-lg/normal"
|
||||
style={styles.headerText}
|
||||
color="mobile-text-heading-primary"
|
||||
>
|
||||
{value2}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ClassificationActionsTaken({actions, classificationExpiration}) { // fn#87827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:2402, offset: 0x01fccde1, size: 561 bytes, params: 2, frame: 37
|
||||
var r10;
|
||||
var r0;
|
||||
var value3;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
var items3;
|
||||
var value6;
|
||||
var items4;
|
||||
var format;
|
||||
var TByIjT;
|
||||
var object;
|
||||
const locale = (require(566) /* metro dependency 566: flux */).useStateFromStores([LocaleStore], function() {
|
||||
return LocaleStore.locale;
|
||||
});
|
||||
const styles = useStyles();
|
||||
const value2 = actions.filter(function(a0) {
|
||||
return a0.descriptions.length > 0;
|
||||
});
|
||||
if (value2.length !== 0) {
|
||||
var viewBindingProps = {style: styles.sectionContainer};
|
||||
items2 = [<Text variant="eyebrow" color="text-muted">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['O2nYk+'])}</Text>];
|
||||
var viewBinding2Props = {style: [styles.actionsTaken]};
|
||||
items3 = [value2.map(_fun87830)];
|
||||
value6 = null;
|
||||
if (value6 != classificationExpiration) {
|
||||
var viewBinding3Props = {style: styles.classificationActionDescription};
|
||||
items4 = [<Text variant="text-xs/normal">{' '}{'•'}</Text>];
|
||||
format = intl.format;
|
||||
TByIjT = (require(1244) /* metro dependency 1244: indexNative */).t.TByIjT;
|
||||
object = {};
|
||||
object.expirationDate = classificationExpiration.toLocaleDateString(locale, {dateStyle: 'medium'});
|
||||
items4[1] = <Text variant="text-xs/normal">{Reflect.apply(format, intl, [TByIjT, object])}</Text>;
|
||||
r10 = <View {...viewBinding3Props} key="expiration">{items4}</View>;
|
||||
} else {
|
||||
r10 = value6;
|
||||
}
|
||||
items3[1] = r10;
|
||||
items2[1] = <View {...viewBinding2Props}>{items3}</View>;
|
||||
r0 = <View {...viewBindingProps}>{items2}</View>;
|
||||
} else {
|
||||
value3 = null;
|
||||
if (value3 == classificationExpiration) {
|
||||
r0 = value3;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.sectionContainer};
|
||||
items2 = [<Text variant="eyebrow" color="text-muted">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['O2nYk+'])}</Text>];
|
||||
var viewBinding2Props = {style: [styles.actionsTaken]};
|
||||
items3 = [value2.map(_fun87830)];
|
||||
value6 = null;
|
||||
if (value6 != classificationExpiration) {
|
||||
var viewBinding3Props = {style: styles.classificationActionDescription};
|
||||
items4 = [<Text variant="text-xs/normal">{' '}{'•'}</Text>];
|
||||
format = intl.format;
|
||||
TByIjT = (require(1244) /* metro dependency 1244: indexNative */).t.TByIjT;
|
||||
object = {};
|
||||
object.expirationDate = classificationExpiration.toLocaleDateString(locale, {dateStyle: 'medium'});
|
||||
items4[1] = <Text variant="text-xs/normal">{Reflect.apply(format, intl, [TByIjT, object])}</Text>;
|
||||
r10 = <View {...viewBinding3Props} key="expiration">{items4}</View>;
|
||||
} else {
|
||||
r10 = value6;
|
||||
}
|
||||
items3[1] = r10;
|
||||
items2[1] = <View {...viewBinding2Props}>{items3}</View>;
|
||||
r0 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function ClassificationActionsTakenRows({action}) { // fn#87831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:3172, offset: 0x01fcd05b, size: 72 bytes, params: 2, frame: 16
|
||||
const env0_0 = useStyles();
|
||||
return (
|
||||
<>
|
||||
{action.descriptions.map(_fun87832)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function ClassificationGuidance({tosLink, communityGuidelinesLink, classificationTypeText, policyExplainerLink, appealComponent}) { // fn#87833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:3466, offset: 0x01fcd141, size: 329 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const text = <Text variant="eyebrow" color="text-muted">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['977iei'])}</Text>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
return (
|
||||
<View style={styles.sectionContainer}>
|
||||
{text}
|
||||
<TextWithIOSLinkWorkaround variant="text-sm/normal">
|
||||
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['1Z/+aA'], {tosLink: tosLink,
|
||||
communityGuidelinesLink: communityGuidelinesLink})}
|
||||
</TextWithIOSLinkWorkaround>
|
||||
<ClassificationPolicyCard
|
||||
classificationTypeText={classificationTypeText}
|
||||
policyExplainerLink={policyExplainerLink}
|
||||
/>
|
||||
{appealComponent}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ClassificationPolicyCard({classificationTypeText, policyExplainerLink}) { // fn#87834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:4013, offset: 0x01fcd28a, size: 366 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
|
||||
const defaultImportProps = {onPress: onPress_87835, style: [styles.classificationPolicyCard]};
|
||||
const ShieldIcon = (require(8036) /* metro dependency 8036: ShieldIcon */).ShieldIcon;
|
||||
const TEXT_LINK = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_LINK;
|
||||
const view = <View style={styles.classificationPolicyCardIcon}><ShieldIcon size="sm" color={TEXT_LINK} /></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View>
|
||||
<TouchableHitBox {...defaultImportProps}>
|
||||
{view}
|
||||
<View style={styles.classificationPolicyCardContent}>
|
||||
<Text variant="heading-md/semibold" color="mobile-text-heading-primary">
|
||||
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.zxUdpj,
|
||||
{classificationDescription: classificationTypeText})}
|
||||
</Text>
|
||||
</View>
|
||||
</TouchableHitBox>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ClassificationDetailFooter({onClose}) { // fn#87836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:5115, offset: 0x01fcd425, size: 163 bytes, params: 2, frame: 22
|
||||
const styles = useStyles();
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<View style={styles.redirectButtonWrapper}>
|
||||
<Button
|
||||
size="md"
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.elrEjL)}
|
||||
onPress={onClose}
|
||||
grow
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function AppealStatus() { // fn#87837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:4583, offset: 0x01fcd4c8, size: 109 bytes, params: 1, frame: 18
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Text variant="text-md/normal" color="text-muted">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['I2H0/E'])}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function LetUsKnow(a0) { // fn#87838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:4711, offset: 0x01fcd535, size: 135 bytes, params: 2, frame: 19
|
||||
const env0_0 = a0;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const format = intl.format;
|
||||
const IFxUaT = (require(1244) /* metro dependency 1244: indexNative */).t.IFxUaT;
|
||||
return (
|
||||
<Text variant="text-sm/normal" color="text-muted">
|
||||
{Reflect.apply(format, intl, [IFxUaT, {letUsKnowHook: letUsKnowHook}])}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function AppealFooter(a0) { // fn#87840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:4962, offset: 0x01fcd612, size: 98 bytes, params: 2, frame: 18
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.letUsKnowContainer}>
|
||||
{a0.hasBeenAppealed ? <AppealStatus /> : <LetUsKnow onPressLetUsKnow={a0.onPressLetUsKnow} />}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ConnectedClassificationDetail({classificationId, source, onClose, onError}) { // fn#87841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:5329, offset: 0x01fcd674, size: 1008 bytes, params: 2, frame: 32
|
||||
var r0;
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
var description;
|
||||
var items2;
|
||||
var APPEALS_LINK;
|
||||
var COMMUNITY_GUIDELINES;
|
||||
var TOS_LINK;
|
||||
const value3 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useSafetyHubClassification(classificationId);
|
||||
const env0_3 = value3;
|
||||
const classification = value3.classification;
|
||||
const env0_5 = value3.isAppealEligible;
|
||||
const styles = useStyles();
|
||||
const appealEligibility = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getAppealEligibility();
|
||||
});
|
||||
const r5 = classification?.flagged_content != null && (classification == null ? undefined : classification.flagged_content.length) > 0;
|
||||
const value7 = (require(11481) /* metro dependency 11481: useSafetyHubAccountStanding */).useSafetyHubAccountStanding();
|
||||
let r9 = classification == null || !classification.is_coppa;
|
||||
const env0_8 = !r9 && appealEligibility.includes((require(5268) /* metro dependency 5268: SafetyHubModels */).AppealEligibility.AGE_VERIFY_ELIGIBLE);
|
||||
const env0_9 = !(classification == null || !classification.is_coppa) && appealEligibility.includes((require(5268) /* metro dependency 5268: SafetyHubModels */).AppealEligibility.AGE_VERIFY_GLOBAL_ELIGIBLE);
|
||||
const env0_11 = env0_3.useRef({accountStanding: value7, classificationId: classificationId,
|
||||
classificationState: value3, hasFlaggedContent: r5, source: source});
|
||||
env0_3.useEffect(_fun87843);
|
||||
env0_3.useEffect(_fun87844, [classification]);
|
||||
if (classification != null) {
|
||||
var scrollViewBindingProps = {style: styles.root};
|
||||
var safeAreaPaddingViewProps = {style: styles.container, bottom: true};
|
||||
if (classification == null) {
|
||||
r9 = <ActivityIndicator size="large" />;
|
||||
} else {
|
||||
var viewBindingProps = {style: [styles.classificationDetailContainer]};
|
||||
description = classification.description;
|
||||
items2 = [<ClassificationHeader classificationTypeText={description} guildMetadata={classification.guild_metadata} />];
|
||||
items2[1] = ((Component) => <Component flaggedContent={classification.flagged_content ?? []} />)(importDefault(11482) /* metro dependency 11482: ClassificationEvidence */);
|
||||
items2[2] = <ClassificationActionsTaken actions={classification.actions} classificationExpiration={(require(5266) /* metro dependency 5266: SafetyHubUtils */).getClassificationExpiration(classification)} />;
|
||||
APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
|
||||
COMMUNITY_GUIDELINES = SafetyHubLinks.COMMUNITY_GUIDELINES;
|
||||
TOS_LINK = SafetyHubLinks.TOS_LINK;
|
||||
description = classification.description;
|
||||
items2[3] = <ClassificationGuidance appealLink={APPEALS_LINK} communityGuidelinesLink={COMMUNITY_GUIDELINES} tosLink={TOS_LINK} classificationTypeText={description} policyExplainerLink={classification.explainer_link} appealComponent={<AppealFooter hasBeenAppealed={classification.appeal_status != null} onPressLetUsKnow={onPressLetUsKnow} />} />;
|
||||
items2[4] = <ClassificationDetailFooter onClose={onClose} />;
|
||||
r9 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
r0 = <ScrollView {...scrollViewBindingProps}><SafeAreaPaddingView {...safeAreaPaddingViewProps}>{r9}</SafeAreaPaddingView></ScrollView>;
|
||||
} else if (value3.classificationRequestState === (require(5268) /* metro dependency 5268: SafetyHubModels */).ClassificationRequestState.FAILED) {
|
||||
onError();
|
||||
r0 = null;
|
||||
} else {
|
||||
var scrollViewBindingProps = {style: styles.root};
|
||||
var safeAreaPaddingViewProps = {style: styles.container, bottom: true};
|
||||
if (classification == null) {
|
||||
r9 = <ActivityIndicator size="large" />;
|
||||
} else {
|
||||
var viewBindingProps = {style: [styles.classificationDetailContainer]};
|
||||
description = classification.description;
|
||||
items2 = [<ClassificationHeader classificationTypeText={description} guildMetadata={classification.guild_metadata} />];
|
||||
items2[1] = ((Component) => <Component flaggedContent={classification.flagged_content ?? []} />)(importDefault(11482) /* metro dependency 11482: ClassificationEvidence */);
|
||||
items2[2] = <ClassificationActionsTaken actions={classification.actions} classificationExpiration={(require(5266) /* metro dependency 5266: SafetyHubUtils */).getClassificationExpiration(classification)} />;
|
||||
APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
|
||||
COMMUNITY_GUIDELINES = SafetyHubLinks.COMMUNITY_GUIDELINES;
|
||||
TOS_LINK = SafetyHubLinks.TOS_LINK;
|
||||
description = classification.description;
|
||||
items2[3] = <ClassificationGuidance appealLink={APPEALS_LINK} communityGuidelinesLink={COMMUNITY_GUIDELINES} tosLink={TOS_LINK} classificationTypeText={description} policyExplainerLink={classification.explainer_link} appealComponent={<AppealFooter hasBeenAppealed={classification.appeal_status != null} onPressLetUsKnow={onPressLetUsKnow} />} />;
|
||||
items2[4] = <ClassificationDetailFooter onClose={onClose} />;
|
||||
r9 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
r0 = <ScrollView {...scrollViewBindingProps}><SafeAreaPaddingView {...safeAreaPaddingViewProps}>{r9}</SafeAreaPaddingView></ScrollView>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun87825() { // fn#87825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:1851, offset: 0x01fccc27, size: 377 bytes, params: 1, frame: 21
|
||||
var environment;
|
||||
var member_type;
|
||||
var r1;
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value2;
|
||||
var value3;
|
||||
var rmpEPD;
|
||||
var object4;
|
||||
var X1ngSd;
|
||||
var object5;
|
||||
const object6 = {};
|
||||
var value;
|
||||
object6.classification_type = classificationTypeText;
|
||||
object6.classificationHook = classificationHook;
|
||||
let guildMetadataBinding = guildMetadata;
|
||||
if (guildMetadataBinding != null) {
|
||||
guildMetadataBinding = guildMetadata;
|
||||
value2 = undefined;
|
||||
member_type = guildMetadataBinding == null ? value2 : guildMetadata.member_type;
|
||||
value3 = environment.__proto__;
|
||||
if (member_type === (require(5268) /* metro dependency 5268: SafetyHubModels */).MemberType.OWNER) {
|
||||
format = intl.format;
|
||||
X1ngSd = t.X1ngSd;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, object6, undefined);
|
||||
object5['guildName'] = guildMetadata == null ? value2 : guildMetadata.name;
|
||||
r1 = Reflect.apply(format, intl, [X1ngSd, object5]);
|
||||
} else {
|
||||
format = intl.format;
|
||||
rmpEPD = t.rmpEPD;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object6, undefined);
|
||||
object4['guildName'] = guildMetadata == null ? value2 : guildMetadata.name;
|
||||
r1 = Reflect.apply(format, intl, [rmpEPD, object4]);
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = intl.format(t['39jfOz'], object6);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun87830(a0) { // fn#87830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:2809, offset: 0x01fcd037, size: 36 bytes, params: 2, frame: 15
|
||||
return <ClassificationActionsTakenRows action={a0} key={a0.id} />;
|
||||
}
|
||||
|
||||
function _fun87832(a0, a1) { // fn#87832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:3277, offset: 0x01fcd0a3, size: 158 bytes, params: 3, frame: 23
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.classificationActionDescription} key={a1}>
|
||||
<Text variant="text-xs/normal">
|
||||
{' '}
|
||||
{'•'}
|
||||
</Text>
|
||||
<Text variant="text-xs/normal">
|
||||
{a0}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ClassificationPolicyCardOnPress() { // fn#87835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:4152, owner: ClassificationPolicyCard.onPress, offset: 0x01fcd3f8, size: 45 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
value.openURL(policyExplainerLink);
|
||||
}
|
||||
|
||||
function letUsKnowHook(a0, a1) { // fn#87839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:4837, owner: LetUsKnow.letUsKnowHook, offset: 0x01fcd5bc, size: 86 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
onPress={env0_0.onPressLetUsKnow}
|
||||
variant="text-sm/normal"
|
||||
color="text-link"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87843() { // fn#87843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:6020, offset: 0x01fcda79, size: 21 bytes, params: 1, frame: 2
|
||||
env0_11.current = env0_10;
|
||||
}
|
||||
|
||||
function _fun87844() { // fn#87844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:6053, offset: 0x01fcda8e, size: 201 bytes, params: 1, frame: 22
|
||||
var current;
|
||||
var accountStanding;
|
||||
var classificationId;
|
||||
var classificationState;
|
||||
var hasFlaggedContent;
|
||||
var source;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var SAFETY_HUB_ACTION;
|
||||
var object2;
|
||||
if (classification != null) {
|
||||
current = env0_11.current;
|
||||
accountStanding = current.accountStanding;
|
||||
classificationId = current.classificationId;
|
||||
classificationState = current.classificationState;
|
||||
hasFlaggedContent = current.hasFlaggedContent;
|
||||
source = current.source;
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
SAFETY_HUB_ACTION = AnalyticEvents.SAFETY_HUB_ACTION;
|
||||
object2 = {};
|
||||
object2.action = SafetyHubAnalyticsActions.ViewViolationDetail;
|
||||
object2.account_standing = accountStanding.state;
|
||||
object2.classification_ids = [global.Number(classificationId)];
|
||||
object2.source = source ?? SafetyHubAnalyticsActionSource.SystemDM;
|
||||
object2.is_violative_content_shown = hasFlaggedContent;
|
||||
object2.is_dsa_eligible = classificationState.isDsaEligible;
|
||||
object2.violation_type = classificationState.violationType;
|
||||
Reflect.apply(track, defaultImport, [SAFETY_HUB_ACTION, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function onPressLetUsKnow() { // fn#87845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:7258, owner: ConnectedClassificationDetail.onPressLetUsKnow, offset: 0x01fcdb57, size: 424 bytes, params: 1, frame: 19
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
var increment;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const SAFETY_HUB_ACTION = AnalyticEvents.SAFETY_HUB_ACTION;
|
||||
let object2 = {};
|
||||
const ClickLetUsKnow = SafetyHubAnalyticsActions.ClickLetUsKnow;
|
||||
object2.action = ClickLetUsKnow;
|
||||
object2.account_standing = env0_7.state;
|
||||
const Number = global.Number;
|
||||
object2.classification_ids = [Number(classificationId)];
|
||||
object2.source = source ?? SafetyHubAnalyticsActionSource.SystemDM;
|
||||
object2.is_violative_content_shown = env0_6;
|
||||
const binding = env0_3;
|
||||
object2.is_dsa_eligible = binding.isDsaEligible;
|
||||
object2.violation_type = binding.violationType;
|
||||
Reflect.apply(track, defaultImport, [SAFETY_HUB_ACTION, object2]);
|
||||
if (env0_9) {
|
||||
value = importDefault(11486) /* metro dependency 11486: AutomatedUnderageAppealModalActionCreatorsNative */;
|
||||
value.openV2(classificationId, onClose);
|
||||
} else if (env0_8) {
|
||||
value = importDefault(11486) /* metro dependency 11486: AutomatedUnderageAppealModalActionCreatorsNative */;
|
||||
value.open(classificationId, onClose);
|
||||
} else if (isAppealEligible) {
|
||||
defaultImport3 = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
increment = defaultImport3.increment;
|
||||
object2 = {};
|
||||
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.APPEAL_INGESTION_VIEW;
|
||||
Reflect.apply(increment, defaultImport3, [object2]);
|
||||
(importDefault(11488) /* metro dependency 11488: AppealIngestionModalActionCreators */).open({classificationId: classificationId});
|
||||
} else {
|
||||
defaultImport2 = importDefault(3853) /* metro dependency 3853: Linking */;
|
||||
defaultImport2.openURL(SafetyHubLinks.APPEALS_LINK);
|
||||
}
|
||||
}
|
||||
|
||||
function classificationHook(a0, a1) { // fn#87826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11658:1904, offset: 0x01fccda0, size: 65 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return <Text {...{variant: 'heading-xl/bold', children: a0}} key={a1} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* Metro module 11470; source: modules/safety_hub/native/ClassificationDetailModal.tsx; dependencies: [31, 661, 11471, 33, 4501, 697, 5080, 5282, 11472, 7007, 11503, 11480, 1485, 5280, 1244, 2] */
|
||||
function _fun87812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:6, offset: 0x01fcc2a1, size: 268 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
|
||||
const env0_6 = (require(11471) /* metro dependency 11471: SettingsAccountConstants */).AccountSettingsTabs;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = {CLASSIFICATION_DETAIL: 'CLASSIFICATION_DETAIL'};
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule,
|
||||
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/ClassificationDetailModal.tsx');
|
||||
exports.default = ClassificationDetailModal;
|
||||
}
|
||||
|
||||
function ClassificationDetailModal({classificationId, source, shouldRedirectToAccountStanding}) { // fn#87813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:453, offset: 0x01fcc3ad, size: 293 bytes, params: 2, frame: 22
|
||||
shouldRedirectToAccountStanding = !(shouldRedirectToAccountStanding === undefined) && shouldRedirectToAccountStanding;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11503) /* metro dependency 11503: useSafetyHubInitialized */).useSafetyHubInitialized();
|
||||
const binding = value2;
|
||||
binding.useEffect(_fun87814, [value2]);
|
||||
(require(1485) /* metro dependency 1485 */).useIsFocused();
|
||||
const value3 = binding.useMemo(function() {
|
||||
return _fun87816(classificationId, shouldRedirectToAccountStanding, styles, source);
|
||||
}, [classificationId, shouldRedirectToAccountStanding, styles, source]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const CLASSIFICATION_DETAIL = env0_8.CLASSIFICATION_DETAIL;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
screens={value3}
|
||||
initialRouteName={CLASSIFICATION_DETAIL}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun87814() { // fn#87814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:616, offset: 0x01fcc4d2, size: 49 bytes, params: 1, frame: 11
|
||||
var value;
|
||||
if (!env0_4) {
|
||||
value = environment.__proto__;
|
||||
value = importAll(11480) /* metro dependency 11480: SafetyHubActionCreators */;
|
||||
value.getSafetyHubData();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87815() { // fn#87815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:700, offset: 0x01fcc503, size: 36 bytes, params: 1, frame: 17
|
||||
return getScreens_87816(classificationId, shouldRedirectToAccountStanding, styles, source);
|
||||
}
|
||||
|
||||
function getScreens_87816(a0, a1, {headerStyle}, a3) { // fn#87816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:704, offset: 0x01fcc527, size: 134 bytes, params: 5, frame: 16
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a3;
|
||||
const closure = getScreens_87816CloseModal;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const CLASSIFICATION_DETAIL = env2_8.CLASSIFICATION_DETAIL;
|
||||
const object = {};
|
||||
object.headerStyle = headerStyle;
|
||||
object.headerTitle = function() {
|
||||
return null;
|
||||
};
|
||||
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
|
||||
object.render = render_87819;
|
||||
return {[CLASSIFICATION_DETAIL]: object};
|
||||
}
|
||||
|
||||
function getScreens_87816CloseModal() { // fn#87817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:748, owner: getScreens_87816.closeModal, offset: 0x01fcc5ad, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function getScreens_87816Render() { // fn#87819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:906, owner: getScreens_87816.render, offset: 0x01fcc5d2, size: 85 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component classificationId={env0_0} source={importAll} onClose={onClose_87820} onError={function() {
|
||||
getScreens_87816CloseModal();
|
||||
require(dependencyMap[9]).openUserSettings({screen: UserSettingsSections.ACCOUNT,
|
||||
params: {initialTab: AccountSettingsTabs.STANDING}});
|
||||
}} />)(importDefault(11472) /* metro dependency 11472: ClassificationDetail */);
|
||||
}
|
||||
|
||||
function renderOnClose_87820() { // fn#87820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11656:957, owner: getScreens_87816.render.onClose, offset: 0x01fcc627, size: 95 bytes, params: 1, frame: 14
|
||||
getScreens_87816CloseModal();
|
||||
if (require) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
(require(7007) /* metro dependency 7007: openUserSettings */).openUserSettings({screen: UserSettingsSections.ACCOUNT,
|
||||
|
||||
params: {initialTab: AccountSettingsTabs.STANDING}});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 11482; source: modules/safety_hub/native/ClassificationEvidence.tsx; dependencies: [31, 27, 33, 4501, 1305, 697, 4573, 1244, 11483, 2] */
|
||||
function _fun87964(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11668:6, offset: 0x01fcfc98, size: 373 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let 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;
|
||||
object3 = {};
|
||||
const nativeModule = require(1305) /* metro dependency 1305: native */;
|
||||
const generateBoxShadowStyle = nativeModule.generateBoxShadowStyle;
|
||||
const FOUR_DP_ELEVATION_SHADOW_PARAMS = nativeModule.FOUR_DP_ELEVATION_SHADOW_PARAMS;
|
||||
object3.cardShadow = Reflect.apply(generateBoxShadowStyle, nativeModule, [FOUR_DP_ELEVATION_SHADOW_PARAMS]);
|
||||
const object4 = {borderWidth: 1};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object4.borderColor = BACKGROUND_BASE_LOWEST;
|
||||
const CHANNELTEXTAREA_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.CHANNELTEXTAREA_BACKGROUND;
|
||||
object4.backgroundColor = CHANNELTEXTAREA_BACKGROUND;
|
||||
object4.padding = 20;
|
||||
object3.flaggedContent = object4;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.sectionContainer = {display: 'flex', gap: PX_8};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/ClassificationEvidence.tsx');
|
||||
exports.default = ClassificationEvidence;
|
||||
}
|
||||
|
||||
function ClassificationEvidence({flaggedContent}) { // fn#87965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11668:588, offset: 0x01fcfe0d, size: 253 bytes, params: 2, frame: 25
|
||||
var r0;
|
||||
var Text;
|
||||
var intl;
|
||||
var items2;
|
||||
var object3;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
if (flaggedContent.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.sectionContainer};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2 = [<Text variant="eyebrow" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.s64CMg)}</Text>];
|
||||
var viewProps = {style: [styles.flaggedContent, styles.cardShadow]};
|
||||
value = importDefault(11483) /* metro dependency 11483: ClassificationMessageEvidence */;
|
||||
items2[1] = <View {...viewProps}>{((Component) => <Component flaggedContent={flaggedContent} />)(value)}</View>;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,341 @@
|
||||
/* Metro module 11483; source: modules/safety_hub/native/ClassificationMessageEvidence.tsx; dependencies: [57, 31, 27, 1310, 1878, 11473, 5267, 661, 33, 8177, 4501, 566, 4002, 11484, 11485, 5266, 4631, 9544, 8011, 9869, 9773, 4625, 21, 2] */
|
||||
function _fun87966(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:6, offset: 0x01fcff0a, size: 429 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.findNodeHandle;
|
||||
const env0_7 = value.Image;
|
||||
const env0_8 = value.ActivityIndicator;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_12 = value.DEFAULT_MEDIA_MAX_WIDTH;
|
||||
const env0_13 = value.DEFAULT_MEDIA_MAX_HEIGHT;
|
||||
const env0_14 = value.VIDEO_PLACEHOLDER_WIDTH;
|
||||
const env0_15 = value.VIDEO_PLACEHOLDER_HEIGHT;
|
||||
const env0_16 = value.VIDEO_PLACEHOLDER_FILENAME;
|
||||
const env0_17 = (require(661) /* metro dependency 661: Constants */).MessageTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_18 = value.jsx;
|
||||
const env0_19 = value.jsxs;
|
||||
value = importDefault(8177) /* metro dependency 8177: RowGenerator */;
|
||||
value = new value();
|
||||
const env0_21 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({dummyVideoAttachments: {'width': 0,
|
||||
'height': 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/ClassificationMessageEvidence.tsx');
|
||||
exports.default = ClassificationEvidence_87967;
|
||||
}
|
||||
|
||||
function ClassificationEvidence_87967({flaggedContent}) { // fn#87967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:615, offset: 0x01fd00b7, size: 1006 bytes, params: 2, frame: 34
|
||||
var object;
|
||||
var r0;
|
||||
var items3;
|
||||
var defaultImport2;
|
||||
var object2;
|
||||
var moduleValue4;
|
||||
var createMessageRecord;
|
||||
var object5;
|
||||
var Date;
|
||||
var defaultImport3;
|
||||
var extractTimestamp;
|
||||
var value14;
|
||||
var value15;
|
||||
var date;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
let binding = env0_4;
|
||||
const value3 = binding.useRef(null);
|
||||
let useState = binding.useState;
|
||||
const value4 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_3;
|
||||
const value5 = binding2(value4, 2);
|
||||
const property = value5[0];
|
||||
const env0_2 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [{}]), 2);
|
||||
const property2 = value6[0];
|
||||
var env0_3 = property2;
|
||||
var env0_4 = value6[1];
|
||||
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ThemeStore], function() {
|
||||
return require(dependencyMap[12]).isThemeLight(ThemeStore.theme);
|
||||
});
|
||||
const resolveAssetSource = Image.resolveAssetSource;
|
||||
const r2 = value7 ? Reflect.apply(resolveAssetSource, Image,
|
||||
[importDefault(11484) /* metro dependency 11484 */]) : Reflect.apply(resolveAssetSource, Image,
|
||||
[importDefault(11485) /* metro dependency 11485 */]);
|
||||
const property3 = flaggedContent[0];
|
||||
binding = env0_4;
|
||||
useState = binding.useState;
|
||||
const value9 = env0_3(Reflect.apply(useState, binding, [property3.attachments.length]), 2);
|
||||
const property4 = value9[0];
|
||||
const env0_8 = value9[1];
|
||||
const username = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore], function() {
|
||||
return SafetyHubStore.getUsername();
|
||||
});
|
||||
let id = property3.id;
|
||||
const value10 = binding.useMemo(_fun87971, [property3.attachments, property2, r2]);
|
||||
const value11 = binding.useCallback(_fun87973, [value10, property3.attachments, id, property2, r2]);
|
||||
const value12 = binding.useCallback(_fun87975, [property]);
|
||||
binding.useEffect(_fun87976, [property3.attachments]);
|
||||
binding.useEffect(_fun87986, [property4]);
|
||||
if (property3.content !== '') {
|
||||
if (property4 > 0) {
|
||||
items2 = [<ActivityIndicator />];
|
||||
items2[1] = <View style={styles.dummyVideoAttachments}>{property3.attachments.filter(_fun87987).map(_fun87988)}</View>;
|
||||
object = {children: items2};
|
||||
} else {
|
||||
items3 = [((Component) => <Component ref={value3} onTapImage={value11} inverted={false} />)(importDefault(9869) /* metro dependency 9869: ChatAndroid */)];
|
||||
defaultImport2 = importDefault(9773) /* metro dependency 9773: ChatItem */;
|
||||
object2 = {rowGenerator: env0_20};
|
||||
moduleValue4 = require(4625) /* metro dependency 4625: MessageRecordUtils */;
|
||||
createMessageRecord = moduleValue4.createMessageRecord;
|
||||
object5 = {};
|
||||
id = property3.id;
|
||||
object5.id = id;
|
||||
Date = global.Date;
|
||||
defaultImport3 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
extractTimestamp = defaultImport3.extractTimestamp;
|
||||
id = property3.id;
|
||||
value14 = Reflect.apply(extractTimestamp, defaultImport3, [id]);
|
||||
value15 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
object5.timestamp = (date instanceof Object ? date : value15).toUTCString();
|
||||
object5.channel_id = '1';
|
||||
object5.type = MessageTypes.DEFAULT;
|
||||
object5.author = currentUser ?? ({'id': '0', 'avatar': null, 'discriminator': '0000', username: username});
|
||||
object5.content = property3.content;
|
||||
object5.attachments = value10;
|
||||
object2.message = Reflect.apply(createMessageRecord, moduleValue4, [object5]);
|
||||
object2.modifyRow = value12;
|
||||
items3[1] = ((Component) => <Component {...object2} />)(defaultImport2);
|
||||
object = {children: items3};
|
||||
}
|
||||
r0 = <View {...object} />;
|
||||
} else if (property3.attachments.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
if (property4 > 0) {
|
||||
items2 = [<ActivityIndicator />];
|
||||
items2[1] = <View style={styles.dummyVideoAttachments}>{property3.attachments.filter(_fun87987).map(_fun87988)}</View>;
|
||||
object = {children: items2};
|
||||
} else {
|
||||
items3 = [((Component) => <Component ref={value3} onTapImage={value11} inverted={false} />)(importDefault(9869) /* metro dependency 9869: ChatAndroid */)];
|
||||
defaultImport2 = importDefault(9773) /* metro dependency 9773: ChatItem */;
|
||||
object2 = {rowGenerator: env0_20};
|
||||
moduleValue4 = require(4625) /* metro dependency 4625: MessageRecordUtils */;
|
||||
createMessageRecord = moduleValue4.createMessageRecord;
|
||||
object5 = {};
|
||||
id = property3.id;
|
||||
object5.id = id;
|
||||
Date = global.Date;
|
||||
defaultImport3 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
extractTimestamp = defaultImport3.extractTimestamp;
|
||||
id = property3.id;
|
||||
value14 = Reflect.apply(extractTimestamp, defaultImport3, [id]);
|
||||
value15 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
object5.timestamp = (date instanceof Object ? date : value15).toUTCString();
|
||||
object5.channel_id = '1';
|
||||
object5.type = MessageTypes.DEFAULT;
|
||||
object5.author = currentUser ?? ({'id': '0', 'avatar': null, 'discriminator': '0000', username: username});
|
||||
object5.content = property3.content;
|
||||
object5.attachments = value10;
|
||||
object2.message = Reflect.apply(createMessageRecord, moduleValue4, [object5]);
|
||||
object2.modifyRow = value12;
|
||||
items3[1] = ((Component) => <Component {...object2} />)(defaultImport2);
|
||||
object = {children: items3};
|
||||
}
|
||||
r0 = <View {...object} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun87971() { // fn#87971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:1114, offset: 0x01fd04ea, size: 34 bytes, params: 1, frame: 11
|
||||
return env0_6.attachments.map(_fun87972);
|
||||
}
|
||||
|
||||
function _fun87973({nativeEvent}) { // fn#87973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:1511, offset: 0x01fd065c, size: 115 bytes, params: 2, frame: 15
|
||||
(require(9544) /* metro dependency 9544: openMediaModal */).openMediaModal({'initialIndex': null,
|
||||
'initialSources': null, 'disableDownload': true, 'disableMediaOverlayButton': true, 'shareable': false,
|
||||
initialIndex: nativeEvent.index, initialSources: env0_10.map(_fun87974),
|
||||
originViewOrOriginLayout: nativeEvent.layout});
|
||||
}
|
||||
|
||||
function _fun87975(a0) { // fn#87975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2153, offset: 0x01fd0802, size: 20 bytes, params: 2, frame: 2
|
||||
a0.reactTag = env0_1;
|
||||
}
|
||||
|
||||
function _fun87976() { // fn#87976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2197, offset: 0x01fd0816, size: 53 bytes, params: 1, frame: 12
|
||||
env0_6.attachments.filter(_fun87977).map(function(a0) {
|
||||
var env0_0 = a0;
|
||||
var value = _fun87979(a0);
|
||||
value = value.then(_fun87982);
|
||||
return value.finally(_fun87984);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun87986() { // fn#87986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2496, offset: 0x01fd0952, size: 49 bytes, params: 1, frame: 12
|
||||
var binding;
|
||||
var value2;
|
||||
if (env0_7 === 0) {
|
||||
binding = env0_2;
|
||||
value2 = environment.__proto__;
|
||||
binding(findNodeHandle(env0_0.current));
|
||||
}
|
||||
}
|
||||
|
||||
function _fun87987({filename}) { // fn#87987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2670, offset: 0x01fd0983, size: 47 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
return (require(4631) /* metro dependency 4631: MediaFormatTesters */).isVideoFile(filename);
|
||||
}
|
||||
|
||||
function _fun87988(a0, a1) { // fn#87988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2717, offset: 0x01fd09b2, size: 91 bytes, params: 3, frame: 17
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component source={{uri: a0.url}} onLoad={onLoad_87989} onError={onError_87992} key={a1} />)(importDefault(8011) /* metro dependency 8011 */);
|
||||
}
|
||||
|
||||
function _fun87972(a0) { // fn#87972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:1137, offset: 0x01fd050c, size: 336 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var moduleValue3;
|
||||
var object4;
|
||||
var value4;
|
||||
var object5;
|
||||
var value5;
|
||||
var binding;
|
||||
var id;
|
||||
var property;
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, a0, undefined);
|
||||
const value2 = undefined;
|
||||
object6['filename'] = (require(5266) /* metro dependency 5266: SafetyHubUtils */).getAttachmentFilename(a0);
|
||||
object6['size'] = 0;
|
||||
object6['proxy_url'] = a0.url;
|
||||
const mediaFormatTestersModule = require(4631) /* metro dependency 4631: MediaFormatTesters */;
|
||||
if (mediaFormatTestersModule.isImageFile(a0.filename)) {
|
||||
object5 = {};
|
||||
copyDataProperties(object5, object6, mediaFormatTestersModule);
|
||||
value5 = environment.__proto__;
|
||||
binding = env1_3;
|
||||
id = a0.id;
|
||||
property = binding[id];
|
||||
object5['width'] = (property == null ? value2 : property.width) ?? DEFAULT_MEDIA_MAX_WIDTH;
|
||||
binding = env1_3;
|
||||
id = a0.id;
|
||||
property = binding[id];
|
||||
object5['height'] = (property == null ? value2 : property.height) ?? DEFAULT_MEDIA_MAX_HEIGHT;
|
||||
r0 = object5;
|
||||
} else {
|
||||
moduleValue3 = mediaFormatTestersModule;
|
||||
if (moduleValue3.isVideoFile(a0.filename)) {
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object6, mediaFormatTestersModule);
|
||||
object4['width'] = VIDEO_PLACEHOLDER_WIDTH;
|
||||
object4['height'] = VIDEO_PLACEHOLDER_HEIGHT;
|
||||
value4 = environment.__proto__;
|
||||
object4['proxy_url'] = env1_5.uri;
|
||||
object4['filename'] = VIDEO_PLACEHOLDER_FILENAME;
|
||||
r0 = object4;
|
||||
} else {
|
||||
r0 = object6;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun87974(a0, a1) { // fn#87974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:1565, offset: 0x01fd06cf, size: 307 bytes, params: 3, frame: 18
|
||||
const object2 = {};
|
||||
object2.uri = a0.url;
|
||||
const value2 = undefined;
|
||||
const mediaFormatTestersModule = require(4631) /* metro dependency 4631: MediaFormatTesters */;
|
||||
object2.videoURI = mediaFormatTestersModule.isVideoFile(env1_6.attachments[a1].filename) ? a0.url : value2;
|
||||
const moduleValue2 = mediaFormatTestersModule;
|
||||
object2.thumbnail = moduleValue2.isVideoFile(env1_6.attachments[a1].filename) ? {width: VIDEO_PLACEHOLDER_WIDTH,
|
||||
height: VIDEO_PLACEHOLDER_HEIGHT, uri: env1_5.uri} : value2;
|
||||
object2.mediaIndex = a1;
|
||||
object2.channelId = '1';
|
||||
object2.messageId = id;
|
||||
let property = env1_3[a0.id];
|
||||
object2.width = (property == null ? value2 : property.width) ?? DEFAULT_MEDIA_MAX_WIDTH;
|
||||
property = env1_3[a0.id];
|
||||
object2.height = (property == null ? value2 : property.height) ?? DEFAULT_MEDIA_MAX_HEIGHT;
|
||||
object2.accessoryType = 'attachment';
|
||||
object2.attachmentId = a0.id;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun87977({filename}) { // fn#87977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2224, offset: 0x01fd084b, size: 47 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (require(4631) /* metro dependency 4631: MediaFormatTesters */).isImageFile(filename);
|
||||
}
|
||||
|
||||
function _fun87978(a0) { // fn#87978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2271, offset: 0x01fd087a, size: 60 bytes, params: 2, frame: 12
|
||||
let env0_0 = a0;
|
||||
let value = ((a0) => {
|
||||
var env0_0 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun87980);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
})(a0);
|
||||
value = value.then(_fun87982);
|
||||
return value.finally(_fun87984);
|
||||
}
|
||||
|
||||
function onLoad_87989(a0) { // fn#87989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2762, offset: 0x01fd0a0d, size: 48 bytes, params: 2, frame: 13
|
||||
const env0_0 = a0;
|
||||
env1_4(_fun87990);
|
||||
env1_8(function(a0) {
|
||||
return a0 - 1;
|
||||
});
|
||||
}
|
||||
|
||||
function onError_87992() { // fn#87992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2867, offset: 0x01fd0a83, size: 25 bytes, params: 1, frame: 11
|
||||
return env1_8(function(a0) {
|
||||
return a0 - 1;
|
||||
});
|
||||
}
|
||||
|
||||
function getImageAttachmentDimensions(a0) { // fn#87979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2274, offset: 0x01fd08b6, size: 46 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const Promise = global.Promise;
|
||||
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
const promise = new Promise(function(a0, a1) {
|
||||
return Image.getSize(a0.url, _fun87981, a1);
|
||||
});
|
||||
return promise instanceof Object ? promise : value;
|
||||
}
|
||||
|
||||
function _fun87982(a0) { // fn#87982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2404, offset: 0x01fd0919, size: 32 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return env2_4(_fun87983);
|
||||
}
|
||||
|
||||
function _fun87984() { // fn#87984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2444, offset: 0x01fd0939, size: 25 bytes, params: 1, frame: 11
|
||||
return env2_8(function(a0) {
|
||||
return a0 - 1;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun87990(a0) { // fn#87990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2769, offset: 0x01fd0a3d, size: 70 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
const id = env1_0.id;
|
||||
const binding = env0_0;
|
||||
object2[id] = {width: binding.naturalSize.width, height: binding.naturalSize.height};
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun87980(a0, a1) { // fn#87980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11669:2335, offset: 0x01fd08e4, size: 53 bytes, params: 3, frame: 15
|
||||
return Image.getSize(a0.url, _fun87981, a1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,270 @@
|
||||
/* Metro module 13276; source: modules/safety_hub/native/SafetyHubAccountStanding.tsx; dependencies: [57, 31, 27, 1878, 11473, 5267, 33, 5268, 13277, 4501, 697, 1244, 4073, 7684, 9149, 6988, 8523, 566, 1423, 7597, 1305, 4573, 2] */
|
||||
function _fun101214(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13466:6, offset: 0x0220bd40, size: 1108 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
const env0_8 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
object2 = {};
|
||||
const AccountStandingState = (require(5268) /* metro dependency 5268: SafetyHubModels */).AccountStandingState;
|
||||
const ALL_GOOD = AccountStandingState.ALL_GOOD;
|
||||
object2[ALL_GOOD] = {left: '0%'};
|
||||
const LIMITED = AccountStandingState.LIMITED;
|
||||
const SUBWAY_MARKER_WIDTH = (require(13277) /* metro dependency 13277: SafetyHubAccountStandingSubwayMarker */).SUBWAY_MARKER_WIDTH;
|
||||
object2[LIMITED] = {left: '25%', transform: [{translateX: -0.5 * SUBWAY_MARKER_WIDTH}]};
|
||||
const VERY_LIMITED = AccountStandingState.VERY_LIMITED;
|
||||
object2[VERY_LIMITED] = {left: '50%', transform: [{translateX: -0.5 * SUBWAY_MARKER_WIDTH}]};
|
||||
const AT_RISK = AccountStandingState.AT_RISK;
|
||||
object2[AT_RISK] = {left: '75%', transform: [{translateX: -0.5 * SUBWAY_MARKER_WIDTH}]};
|
||||
const SUSPENDED = AccountStandingState.SUSPENDED;
|
||||
object2[SUSPENDED] = {left: '100%', transform: [{translateX: -SUBWAY_MARKER_WIDTH}]};
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const object3 = {'display': 'flex', 'flexDirection': 'column', 'rowGap': 12, 'padding': 24, 'alignItems': 'center',
|
||||
'justifyContent': 'center'};
|
||||
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object3.backgroundColor = CARD_BACKGROUND_DEFAULT;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object2.container = object3;
|
||||
const object4 = {'position': 'relative', 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object4.padding = PX_4;
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object4.backgroundColor = BACKGROUND_MOD_STRONG;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object2.avatarBackground = object4;
|
||||
const STATUS_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
|
||||
object2.good = {color: STATUS_POSITIVE};
|
||||
const STATUS_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_WARNING;
|
||||
object2.limited = {color: STATUS_WARNING};
|
||||
object2.veryLimited = {color: '#FF7A00'};
|
||||
let ICON_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_CRITICAL;
|
||||
object2.atRisk = {color: ICON_FEEDBACK_CRITICAL};
|
||||
ICON_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.ICON_FEEDBACK_CRITICAL;
|
||||
object2.suspended = {color: ICON_FEEDBACK_CRITICAL};
|
||||
object2.body = {'display': 'flex', 'rowGap': 40, 'width': '100%'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.bodyText = {rowGap: PX_8};
|
||||
object2.health = {'position': 'relative', 'left': 0, 'right': 0, 'marginBottom': 18};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object2.line = {'height': 3, 'width': '100%', 'position': 'absolute', 'top': 8.5,
|
||||
backgroundColor: BACKGROUND_BASE_LOWEST};
|
||||
object2.subwayMarker = {position: 'absolute'};
|
||||
const object5 = {};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object2.icon = object5;
|
||||
const env0_12 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/SafetyHubAccountStanding.tsx');
|
||||
exports.default = SafetyHubAccountStanding;
|
||||
}
|
||||
|
||||
function SafetyHubAccountStanding() { // fn#101215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13466:1846, offset: 0x0220c194, size: 766 bytes, params: 1, frame: 34
|
||||
const accountStanding = SafetyHubStore.getAccountStanding();
|
||||
const binding = env0_4;
|
||||
const value3 = binding.useState(0);
|
||||
const value4 = undefined;
|
||||
const value5 = env0_3(value3, 2);
|
||||
const property = value5[0];
|
||||
const env0_2 = value5[1];
|
||||
const styles = useStyles();
|
||||
const value6 = binding.useMemo(_fun101216, [styles]);
|
||||
const value7 = binding.useMemo(_fun101217, [accountStanding, value6, property, styles]);
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const r18 = currentUser != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(currentUser) : importDefault(7597) /* metro dependency 7597 */;
|
||||
const property2 = value6[accountStanding.state];
|
||||
const title = property2.title;
|
||||
const description = property2.description;
|
||||
const env0_5 = property2.style;
|
||||
const items2 = [styles.container];
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
const object = {source: r18};
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
const XXLARGE = AvatarSizes.XXLARGE;
|
||||
object.size = XXLARGE;
|
||||
const username = currentUser == null ? value4 : currentUser.username;
|
||||
object['aria-label'] = username ?? '';
|
||||
const view = <View style={styles.avatarBackground}><Avatar {...object} /></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let value = <Text variant="heading-lg/medium" color="text-default" style={{textAlign: 'center'}}>{intl.format(title,
|
||||
{hook: hook})}</Text>;
|
||||
value = <View style={styles.bodyText}>{value}<Text variant="text-sm/medium" color="text-muted" style={{textAlign: 'center'}}>{description}</Text></View>;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{view}
|
||||
<View style={styles.body}>
|
||||
{value}
|
||||
<View style={[styles.health, {height: property}]}>
|
||||
<View style={styles.line} />
|
||||
{value7}
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun101216() { // fn#101216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13466:1971, offset: 0x0220c492, size: 936 bytes, params: 1, frame: 24
|
||||
const object3 = {};
|
||||
const AccountStandingState = (require(5268) /* metro dependency 5268: SafetyHubModels */).AccountStandingState;
|
||||
const ALL_GOOD = AccountStandingState.ALL_GOOD;
|
||||
const object8 = {};
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object8.title = t.uaKrRi;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const format = intl.format;
|
||||
const pEdBD4 = t.pEdBD4;
|
||||
const TOS_LINK = SafetyHubLinks.TOS_LINK;
|
||||
const COMMUNITY_GUIDELINES = SafetyHubLinks.COMMUNITY_GUIDELINES;
|
||||
object8.description = Reflect.apply(format, intl, [pEdBD4, {termsOfService: TOS_LINK,
|
||||
communityGuidelines: COMMUNITY_GUIDELINES}]);
|
||||
object8.status = t['/Idfao'];
|
||||
const stylesBinding = styles;
|
||||
object8.style = stylesBinding.good;
|
||||
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
|
||||
object8.CustomIcon = CircleCheckIcon;
|
||||
object3[ALL_GOOD] = object8;
|
||||
const LIMITED = AccountStandingState.LIMITED;
|
||||
const object9 = {};
|
||||
object9.title = t.epkcmS;
|
||||
object9.description = intl.string(t['774juc']);
|
||||
object9.status = t.umleq4;
|
||||
object9.style = stylesBinding.limited;
|
||||
const CircleErrorIcon = (require(7684) /* metro dependency 7684: CircleErrorIcon */).CircleErrorIcon;
|
||||
object9.CustomIcon = CircleErrorIcon;
|
||||
object9.iconSource = importDefault(9149) /* metro dependency 9149 */;
|
||||
object3[LIMITED] = object9;
|
||||
const VERY_LIMITED = AccountStandingState.VERY_LIMITED;
|
||||
const object10 = {};
|
||||
object10.title = t.crzE2X;
|
||||
object10.description = intl.string(t['T/Ufh9']);
|
||||
const WBtMHf = t.WBtMHf;
|
||||
object10.status = WBtMHf;
|
||||
object10.style = stylesBinding.veryLimited;
|
||||
object10.CustomIcon = CircleErrorIcon;
|
||||
object10.iconSource = importDefault(9149) /* metro dependency 9149 */;
|
||||
object3[VERY_LIMITED] = object10;
|
||||
const AT_RISK = AccountStandingState.AT_RISK;
|
||||
const object11 = {};
|
||||
const XRNVzO = t.XRNVzO;
|
||||
object11.title = XRNVzO;
|
||||
object11.description = intl.string(t['hbH+9S']);
|
||||
object11.status = t['7f+4Lg'];
|
||||
object11.style = stylesBinding.atRisk;
|
||||
object11.CustomIcon = CircleErrorIcon;
|
||||
object11.iconSource = importDefault(9149) /* metro dependency 9149 */;
|
||||
object3[AT_RISK] = object11;
|
||||
const SUSPENDED = AccountStandingState.SUSPENDED;
|
||||
const object12 = {};
|
||||
const MExFkz = t.MExFkz;
|
||||
object12.title = MExFkz;
|
||||
object12.description = intl.string(t['2liUvt']);
|
||||
object12.status = t['0OONGB'];
|
||||
object12.style = stylesBinding.suspended;
|
||||
const CircleXIcon = (require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon;
|
||||
object12.CustomIcon = CircleXIcon;
|
||||
object12.iconSource = importDefault(8523) /* metro dependency 8523 */;
|
||||
object3[SUSPENDED] = object12;
|
||||
return object3;
|
||||
}
|
||||
|
||||
function _fun101217() { // fn#101217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13466:3146, offset: 0x0220c83a, size: 47 bytes, params: 1, frame: 11
|
||||
const Object = global.Object;
|
||||
return Object.entries(env0_4).map(_fun101218);
|
||||
}
|
||||
|
||||
function SafetyHubAccountStandingHook(a0, a1) { // fn#101221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13466:4112, owner: SafetyHubAccountStanding.hook, offset: 0x0220c9f3, size: 76 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
style={style}
|
||||
variant="heading-lg/bold"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun101218(a0, a1) { // fn#101218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13466:3173, offset: 0x0220c869, size: 331 bytes, params: 3, frame: 26
|
||||
var r0;
|
||||
var r1;
|
||||
var r11;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value2;
|
||||
r11 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r11 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r11 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
const int = global.parseInt(r2);
|
||||
const Object = global.Object;
|
||||
const length = Object.keys(env1_4).length;
|
||||
const CustomIcon = r11.CustomIcon;
|
||||
const stylesBinding = styles;
|
||||
const items2 = [stylesBinding.subwayMarker, env2_11[int]];
|
||||
const SafetyHubAccountStandingSubwayMarker = importDefault(13277) /* metro dependency 13277: SafetyHubAccountStandingSubwayMarker */;
|
||||
const object = {};
|
||||
copyDataProperties(object, stylesBinding.icon, undefined);
|
||||
object['width'] = 20;
|
||||
object['height'] = 20;
|
||||
return (
|
||||
<View style={items2} key={a1}>
|
||||
<SafetyHubAccountStandingSubwayMarker
|
||||
selectedIcon={<CustomIcon style={object} color={r11.style.color} />}
|
||||
style={r11.style}
|
||||
status={r11.status}
|
||||
isSelected={int === env1_0.state}
|
||||
index={a1}
|
||||
onLayout={onLayout_101219}
|
||||
size={20}
|
||||
numOptions={length}
|
||||
key={a1}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function onLayout_101219(a0) { // fn#101219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13466:3449, offset: 0x0220c9b4, size: 63 bytes, params: 2, frame: 12
|
||||
if (a0.nativeEvent.layout.height > env2_1) {
|
||||
env2_2(a0.nativeEvent.layout.height);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Metro module 13277; source: modules/safety_hub/native/SafetyHubAccountStandingSubwayMarker.tsx; dependencies: [31, 27, 33, 4501, 697, 1244, 4573, 2] */
|
||||
function _fun101222(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13467:6, offset: 0x0220ca3f, size: 438 bytes, params: 8, frame: 24
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
let 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;
|
||||
object4 = {container: {'width': 56, 'display': 'flex', 'flexDirection': 'column', 'justifyContent': 'space-between',
|
||||
'alignItems': 'center', 'rowGap': 8, 'flex': 1}};
|
||||
const object5 = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'zIndex': 1};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object5.padding = PX_4;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object4.marker = object5;
|
||||
const object6 = {'display': 'flex', 'borderRadius': null, 'backgroundColor': null, 'width': '100%',
|
||||
'height': '100%'};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object6.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object4.empty = object6;
|
||||
object4.label = {textAlign: 'center'};
|
||||
object4.firstOption = {'alignItems': 'flex-start', 'textAlign': 'left'};
|
||||
object4.lastOption = {'alignItems': 'flex-end', 'textAlign': 'right'};
|
||||
const env0_6 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/SafetyHubAccountStandingSubwayMarker.tsx');
|
||||
exports.default = SafetyHubAccountStandingSubwayMarker;
|
||||
exports.SUBWAY_MARKER_WIDTH = 56;
|
||||
}
|
||||
|
||||
function SafetyHubAccountStandingSubwayMarker({selectedIcon, style, status, isSelected, index, onLayout, size, numOptions}) { // fn#101223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13467:872, offset: 0x0220cbf5, size: 431 bytes, params: 2, frame: 30
|
||||
var r6;
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
let object = {};
|
||||
copyDataProperties(object, styles.container, undefined);
|
||||
const value3 = index === 0;
|
||||
copyDataProperties(object, value3 ? styles.firstOption : {}, undefined);
|
||||
copyDataProperties(object, index === numOptions - 1 ? styles.lastOption : {}, undefined);
|
||||
const object3 = {style: object, onLayout: onLayout};
|
||||
if (isSelected) {
|
||||
r6 = selectedIcon;
|
||||
} else {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, styles.marker, undefined);
|
||||
object2['width'] = size;
|
||||
object2['height'] = size;
|
||||
object2['marginLeft'] = value3 ? -(importDefault(697) /* metro dependency 697: native */).space.PX_4 : 0;
|
||||
object2['marginRight'] = index !== numOptions - 1 ? 0 : -(importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
r6 = <View style={object2}><View style={styles.empty} /></View>;
|
||||
}
|
||||
object = [r6];
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object[1] = intl.format(status, {hook: hook});
|
||||
return (
|
||||
<View {...object3}>
|
||||
{object}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function SafetyHubAccountStandingSubwayMarkerHook(a0, a1) { // fn#101224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13467:1331, owner: SafetyHubAccountStandingSubwayMarker.hook, offset: 0x0220cda4, size: 130 bytes, params: 3, frame: 18
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
{...isSelected ? {style: {color: style.color}, variant: 'text-xxs/bold',
|
||||
children: a0} : {'color': 'interactive-text-default', 'variant': 'text-xxs/normal', style: styles.label,
|
||||
children: a0}}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* Metro module 13275; source: modules/safety_hub/native/SafetyHubErrorActionSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 13273, 6275, 6988, 4573, 1244, 4578, 11480, 2] */
|
||||
function _fun101211(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13465:6, offset: 0x0220b9ca, size: 387 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_4 = (require(27) /* metro dependency 27 */).View;
|
||||
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;
|
||||
object4 = {};
|
||||
const object5 = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.paddingTop = PX_8;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object5.paddingBottom = PX_24;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.gap = PX_16;
|
||||
object5.minHeight = 120;
|
||||
object4.errorContainer = object5;
|
||||
const object6 = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'height': 40, 'width': 40};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object6.backgroundColor = WHITE;
|
||||
object4.redesignErrorIconContainer = object6;
|
||||
object4.redesignErrorIcon = {'height': 50, 'width': 50};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/SafetyHubErrorActionSheet.tsx');
|
||||
exports.default = SafetyHubErrorActionSheet;
|
||||
}
|
||||
|
||||
function SafetyHubErrorActionSheet(a0) { // fn#101212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13465:666, offset: 0x0220bb4d, size: 462 bytes, params: 2, frame: 27
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
|
||||
throw undefined;
|
||||
}
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(13273) /* metro dependency 13273: useSafetyHubLoading */)();
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const items3 = [styles.errorContainer];
|
||||
const items2 = [styles.redesignErrorIconContainer];
|
||||
const CircleXIcon = (require(6988) /* metro dependency 6988: CircleXIcon */).CircleXIcon;
|
||||
const CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT;
|
||||
let view = <View style={items2}><CircleXIcon size="custom" color={CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT} style={[styles.redesignErrorIcon]} /></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const TDRvqs = (require(1244) /* metro dependency 1244: indexNative */).t.TDRvqs;
|
||||
view = <View style={items3}>{view}<Text variant="heading-lg/normal">{Reflect.apply(string, intl,
|
||||
[TDRvqs])}</Text></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const object = {onPress: onPress_101213};
|
||||
string = intl.string;
|
||||
const R1AN4F = (require(1244) /* metro dependency 1244: indexNative */).t.R1AN4F;
|
||||
object.text = Reflect.apply(string, intl, [R1AN4F]);
|
||||
object.loading = value2;
|
||||
object.disabled = value2;
|
||||
return (
|
||||
<BottomSheet>
|
||||
{view}
|
||||
<Button {...object} />
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function SafetyHubErrorActionSheetOnPress() { // fn#101213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13465:1115, owner: SafetyHubErrorActionSheet.onPress, offset: 0x0220bd1b, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importAll(11480) /* metro dependency 11480: SafetyHubActionCreators */).getSafetyHubData();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,157 @@
|
||||
/* Metro module 13272; source: modules/safety_hub/native/SafetyHubPage.tsx; dependencies: [31, 27, 11473, 5267, 661, 33, 1244, 4573, 5076, 1305, 566, 4501, 697, 13273, 11503, 11481, 13274, 4594, 11480, 683, 4826, 4831, 4080, 13275, 1962, 13276, 13278, 2] */
|
||||
function _fun101196(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:6, offset: 0x0220b0b2, size: 411 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ActivityIndicator;
|
||||
const env0_7 = value.ScrollView;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
const env0_9 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).AgeCheckStatus;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_10 = value.AnalyticEvents;
|
||||
const env0_11 = value.Routes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.paddingHorizontal = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.paddingVertical = PX_12;
|
||||
object3.container = object4;
|
||||
object3.loadingIndicator = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.body = {gap: PX_8};
|
||||
const env0_14 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/SafetyHubPage.tsx');
|
||||
exports.default = SafetyHubPage;
|
||||
}
|
||||
|
||||
function AutomatedUnderageAppealStatus() { // fn#101197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:264, offset: 0x0220b24d, size: 137 bytes, params: 1, frame: 17
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const {message, type} = getAutomatedAppealStatusMessage(Reflect.apply(useStateFromStores, fluxModule,
|
||||
[[SafetyHubStore], function() {
|
||||
return SafetyHubStore.getAgeCheckStatus();
|
||||
}]));
|
||||
const value3 = null;
|
||||
if (value3 == type) {
|
||||
return value3;
|
||||
} else {
|
||||
const HelpMessage = (require(1305) /* metro dependency 1305: native */).HelpMessage;
|
||||
return (
|
||||
<HelpMessage messageType={type}>
|
||||
{message}
|
||||
</HelpMessage>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function SafetyHubPage({visible}) { // fn#101202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:1459, offset: 0x0220b552, size: 449 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(13273) /* metro dependency 13273: useSafetyHubLoading */)();
|
||||
const env0_1 = (require(11503) /* metro dependency 11503: useSafetyHubInitialized */).useSafetyHubInitialized();
|
||||
const env0_2 = (require(11481) /* metro dependency 11481: useSafetyHubAccountStanding */).useSafetyHubAccountStanding();
|
||||
const value3 = (require(13274) /* metro dependency 13274: useSafetyHubFetchError */).useSafetyHubFetchError();
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun101203);
|
||||
env0_4.useEffect(_fun101204, [value3, visible]);
|
||||
return value2 ? <View style={[styles.container,
|
||||
styles.loadingIndicator]}><ActivityIndicator animating size="large" /></View> : value3 != null ? null : <ScrollView style={styles.container}><View style={styles.body}><AutomatedUnderageAppealStatus />{((Component) => <Component />)(importDefault(13276) /* metro dependency 13276: SafetyHubAccountStanding */)}</View>{((ConnectedSafetyHubViolationsContainer) => <ConnectedSafetyHubViolationsContainer />)((require(13278) /* metro dependency 13278: SafetyHubViolationsContainer */).ConnectedSafetyHubViolationsContainer)}</ScrollView>;
|
||||
}
|
||||
|
||||
function getAutomatedAppealStatusMessage(a0) { // fn#101198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:311, owner: AutomatedUnderageAppealStatus.getAutomatedAppealStatusMessage, offset: 0x0220b2d6, size: 484 bytes, params: 2, frame: 18
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const HelpMessageTypes = (require(1305) /* metro dependency 1305: native */).HelpMessageTypes;
|
||||
const SUCCESS = AgeCheckStatus.SUCCESS;
|
||||
if (SUCCESS === a0) {
|
||||
return {message: intl.format(t.hyh4ls, {loginHook: loginHook_101199}), type: HelpMessageTypes.SUCCESS};
|
||||
}
|
||||
const ERROR = AgeCheckStatus.ERROR;
|
||||
if (ERROR === a0) {
|
||||
object2 = {};
|
||||
object2.message = intl.string(t['4sILBU']);
|
||||
object2.type = HelpMessageTypes.ERROR;
|
||||
return object2;
|
||||
}
|
||||
const FAILURE = AgeCheckStatus.FAILURE;
|
||||
if (FAILURE === a0) {
|
||||
object2 = {};
|
||||
object2.message = intl.string(t['40R63o']);
|
||||
object2.type = HelpMessageTypes.ERROR;
|
||||
return object2;
|
||||
}
|
||||
const LOADING = AgeCheckStatus.LOADING;
|
||||
if (LOADING === a0) {
|
||||
object2 = {};
|
||||
object2.message = intl.string(t['nhhy/R']);
|
||||
object2.type = HelpMessageTypes.INFO;
|
||||
return object2;
|
||||
}
|
||||
return {'message': null, 'type': null};
|
||||
}
|
||||
|
||||
function _fun101203() { // fn#101203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:1649, offset: 0x0220b713, size: 161 bytes, params: 1, frame: 18
|
||||
var defaultImport;
|
||||
var object2;
|
||||
var defaultImport2;
|
||||
var increment;
|
||||
(importAll(11480) /* metro dependency 11480: SafetyHubActionCreators */).getSafetyHubData();
|
||||
if (env0_1) {
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.SAFETY_HUB_VIEWED, {account_standing: env0_2.state});
|
||||
defaultImport2 = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
increment = defaultImport2.increment;
|
||||
object2 = {};
|
||||
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.SAFETY_HUB_VIEW;
|
||||
Reflect.apply(increment, defaultImport2, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun101204() { // fn#101204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:1831, offset: 0x0220b7b4, size: 148 bytes, params: 1, frame: 16
|
||||
var defaultImport;
|
||||
var openLazy;
|
||||
var value;
|
||||
if (visible) {
|
||||
if (env0_3 != null) {
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(dependencyMap[22]);
|
||||
openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[24]);
|
||||
value = value(dependencyMap[23], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'SafetyHubErrorActionSheet', {}]);
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(dependencyMap[22]);
|
||||
value.hideActionSheet('SafetyHubErrorActionSheet');
|
||||
}
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(dependencyMap[22]);
|
||||
value.hideActionSheet('SafetyHubErrorActionSheet');
|
||||
}
|
||||
}
|
||||
|
||||
function getAutomatedAppealStatusMessageLoginHook(a0) { // fn#101199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13462:443, owner: AutomatedUnderageAppealStatus.getAutomatedAppealStatusMessage.loginHook, offset: 0x0220b4ba, size: 76 bytes, params: 2, frame: 14
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant="text-sm/medium"
|
||||
color="text-link"
|
||||
onPress={function() {
|
||||
return importDefault(dependencyMap[8]).logout('safety_hub_page_appeal_success', Routes.LOGIN);
|
||||
}}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,422 @@
|
||||
/* Metro module 13278; source: modules/safety_hub/native/SafetyHubViolationsContainer.tsx; dependencies: [57, 31, 27, 11473, 5267, 661, 33, 4501, 697, 8792, 8129, 4573, 1244, 12298, 8708, 5266, 21, 13279, 5268, 5080, 11470, 1962, 11481, 566, 683, 11479, 2] */
|
||||
function _fun101225(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:6, offset: 0x0220ce26, size: 1375 bytes, params: 8, frame: 24
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const closure = SafetyHubViolationsContainer;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.Pressable;
|
||||
const env0_6 = value.View;
|
||||
const safetyHubStore = importDefault(11473) /* metro dependency 11473: SafetyHubStore */;
|
||||
value = require(5267) /* metro dependency 5267: SafetyHubConstants */;
|
||||
const env0_8 = value.SafetyHubAnalyticsActionSource;
|
||||
const env0_9 = value.SafetyHubAnalyticsActions;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
const env0_13 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object6 = {'display': 'flex', 'marginTop': null, 'marginBottom': 36};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.marginTop = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.gap = PX_12;
|
||||
object4.connectedContainer = object6;
|
||||
const object7 = {};
|
||||
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
|
||||
object7.backgroundColor = CARD_BACKGROUND_DEFAULT;
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object7.padding = PX_8;
|
||||
object7.width = '100%';
|
||||
object4.container = object7;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.header = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': null, 'width': '100%',
|
||||
gap: PX_16};
|
||||
const object9 = {};
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
object9.backgroundColor = BACKGROUND_MOD_STRONG;
|
||||
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object9.padding = PX_12;
|
||||
object9.marginTop = 10;
|
||||
object4.detailContainerOuter = object9;
|
||||
const CONTROL_PRIMARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_PRIMARY_BACKGROUND_DEFAULT;
|
||||
object4.detailContainerOuterNew = {'borderColor': null, 'borderWidth': 1, 'borderStyle': 'solid',
|
||||
borderColor: CONTROL_PRIMARY_BACKGROUND_DEFAULT};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.detailContainerInner = {display: 'flex', gap: PX_8};
|
||||
const object12 = {'display': 'flex', 'borderRadius': null, 'backgroundColor': null, 'justifyContent': 'center',
|
||||
'alignItems': 'center', 'padding': 6};
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
let BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object12.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object4.iconBackground = object12;
|
||||
object4.chevron = {marginLeft: 'auto'};
|
||||
const object14 = {alignSelf: 'flex-start'};
|
||||
BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object14.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object14.paddingVertical = PX_4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object14.paddingHorizontal = PX_8;
|
||||
object4.incidentDate = object14;
|
||||
const object16 = {};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object16.backgroundColor = BACKGROUND_BRAND;
|
||||
const CONTROL_PRIMARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_PRIMARY_TEXT_DEFAULT;
|
||||
object16.color = CONTROL_PRIMARY_TEXT_DEFAULT;
|
||||
object4.incidentDateNew = object16;
|
||||
object4.newText = {textTransform: 'capitalize'};
|
||||
const object17 = {'display': 'flex', 'alignItems': 'center'};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object17.backgroundColor = BACKGROUND_BASE_LOWER;
|
||||
object17.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object17.gap = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object17.marginTop = PX_8;
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object17.paddingTop = PX_24;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object17.paddingBottom = PX_24;
|
||||
object4.emptyState = object17;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object4.separator = {'height': 1, 'width': '100%', 'backgroundColor': null, 'marginTop': 10,
|
||||
backgroundColor: BORDER_SUBTLE};
|
||||
object4.moreButtonContainer = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
const object18 = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center',
|
||||
'borderBottomEndRadius': null, 'borderBottomStartRadius': null, 'backgroundColor': null, 'height': 29,
|
||||
'width': 207};
|
||||
object18.borderBottomEndRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object18.borderBottomStartRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object18.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
object4.moreButton = object18;
|
||||
object4.headerTextContainer = {'flexShrink': 0, 'flexGrow': 1, 'gap': 2};
|
||||
const env0_14 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/SafetyHubViolationsContainer.tsx');
|
||||
exports.default = closure;
|
||||
exports.ConnectedSafetyHubViolationsContainer = ConnectedSafetyHubViolationsContainer;
|
||||
}
|
||||
|
||||
function SafetyHubViolationsHeader({count, onClick, opened, status}) { // fn#101226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:2244, offset: 0x0220d385, size: 664 bytes, params: 2, frame: 33
|
||||
var r14;
|
||||
var fZAHBT;
|
||||
var object;
|
||||
var IeV2oY;
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
|
||||
const items5 = [styles.header];
|
||||
const items2 = [styles.iconBackground];
|
||||
const WarningIcon = (require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon;
|
||||
const value2 = status === 'active';
|
||||
const colors = (importDefault(697) /* metro dependency 697: native */).colors;
|
||||
const items3 = [<View style={items2}><WarningIcon color={value2 ? colors.INTERACTIVE_TEXT_DEFAULT : colors.ICON_MUTED} size="xs" /></View>];
|
||||
const items4 = [styles.headerTextContainer];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (value2) {
|
||||
IeV2oY = t.IeV2oY;
|
||||
object2 = {};
|
||||
object2.count = count.toString();
|
||||
r14 = Reflect.apply(formatToPlainString, intl, [IeV2oY, object2]);
|
||||
} else {
|
||||
fZAHBT = t.fZAHBT;
|
||||
object = {};
|
||||
object.count = count.toString();
|
||||
r14 = Reflect.apply(formatToPlainString, intl, [fZAHBT, object]);
|
||||
}
|
||||
const text = <Text variant="heading-sm/semibold">{r14}</Text>;
|
||||
const string = intl.string;
|
||||
items3[1] = <View style={items4}>{text}<Text variant="text-xxs/normal" color="text-muted">{value2 ? Reflect.apply(string,
|
||||
intl, [t.XJ2YVR]) : Reflect.apply(string, intl, [t.SzGV0g])}</Text></View>;
|
||||
items3[2] = ((Component) => <Component size="md" style={[styles.chevron]} />)(opened ? (require(12298) /* metro dependency 12298: ChevronSmallUpIcon */).ChevronSmallUpIcon : (require(8708) /* metro dependency 8708: ChevronSmallDownIcon */).ChevronSmallDownIcon);
|
||||
return (
|
||||
<TouchableHitBox onPress={onClick} style={items5}>
|
||||
{items3}
|
||||
</TouchableHitBox>
|
||||
);
|
||||
}
|
||||
|
||||
function EmptyActiveState() { // fn#101227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:3074, offset: 0x0220d61d, size: 251 bytes, params: 1, frame: 24
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.emptyState];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const text = <Text variant="heading-sm/extrabold">{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.reLFaV])}</Text>;
|
||||
string = intl.string;
|
||||
const ERdH1o = (require(1244) /* metro dependency 1244: indexNative */).t.ERdH1o;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{text}
|
||||
<Text variant="text-xs/normal">
|
||||
{Reflect.apply(string, intl, [ERdH1o])}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function EmptyExpiredState() { // fn#101228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:3350, offset: 0x0220d718, size: 153 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.emptyState];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const RV3AXf = (require(1244) /* metro dependency 1244: indexNative */).t.RV3AXf;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<Text variant="text-xs/normal">
|
||||
{Reflect.apply(string, intl, [RV3AXf])}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ClassificationDetail({classification}) { // fn#101229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:3946, offset: 0x0220d7b1, size: 385 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const id = classification.id;
|
||||
const description = classification.description;
|
||||
const guild_metadata = classification.guild_metadata;
|
||||
const value2 = (importDefault(21) /* metro dependency 21: SnowflakeUtils */).extractTimestamp(id);
|
||||
const value3 = (require(13279) /* metro dependency 13279: useIsNewClassification */).useIsNewClassification(classification);
|
||||
const value4 = env0_4.useMemo(_fun101230, [description, guild_metadata]);
|
||||
const items3 = [styles.detailContainerOuter];
|
||||
items3[1] = value3 ? styles.detailContainerOuterNew : null;
|
||||
const TouchableHitBox = importDefault(8792) /* metro dependency 8792: TouchableHitBox */;
|
||||
const items2 = [styles.detailContainerInner];
|
||||
const r12 = value3 ? <NewBadge_101244 /> : <RelativeIncidentTime timestamp={value2} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={items3}>
|
||||
<TouchableHitBox
|
||||
onPress={function() {
|
||||
importDefault(dependencyMap[19]).pushLazy(require(dependencyMap[21])(dependencyMap[20], dependencyMap.paths),
|
||||
{classificationId: id, source: SafetyHubAnalyticsActionSource.StandingTab});
|
||||
}}
|
||||
>
|
||||
<View style={items2}>
|
||||
{r12}
|
||||
<Text variant="heading-md/normal">
|
||||
{value4}
|
||||
</Text>
|
||||
</View>
|
||||
</TouchableHitBox>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function SafetyHubViolationsContainer({status, classifications}) { // fn#101233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:4946, offset: 0x0220db52, size: 903 bytes, params: 2, frame: 43
|
||||
var r14;
|
||||
var r10;
|
||||
var r5;
|
||||
var items4;
|
||||
var value14;
|
||||
var jsxRuntimeEnv0_13Binding;
|
||||
var items6;
|
||||
var Text;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const [property, env0_2] = env0_3(env0_4Binding.useState(false), 2);
|
||||
var [property2, env0_4] = env0_3(env0_4Binding.useState(3), 2);
|
||||
const value7 = (require(11481) /* metro dependency 11481: useSafetyHubAccountStanding */).useSafetyHubAccountStanding();
|
||||
const isDsaEligible = (require(566) /* metro dependency 566: flux */).useStateFromStores([SafetyHubStore],
|
||||
function() {
|
||||
return SafetyHubStore.getIsDsaEligible();
|
||||
});
|
||||
const value8 = env0_4Binding.useMemo(_fun101235, [classifications, property2]);
|
||||
env0_4Binding.useEffect(_fun101236, [property, value7.state, value8, isDsaEligible]);
|
||||
let length = classifications.length;
|
||||
const r32 = length - value8.length > 3 ? 3 : classifications.length - value8.length;
|
||||
const items2 = [styles.container];
|
||||
const safetyHubViolationsHeader = <SafetyHubViolationsHeader status={status} onClick={onClick_101238} opened={property} count={classifications.length} />;
|
||||
if (property) {
|
||||
items4 = [<View style={[styles.separator]} />];
|
||||
length = value8.length;
|
||||
items4[1] = length > 0 && value8.map(_fun101240);
|
||||
length = value8.length;
|
||||
value14 = length < classifications.length;
|
||||
if (value14) {
|
||||
jsxRuntimeEnv0_13Binding = jsxRuntimeEnv0_13;
|
||||
items6 = [<View style={[styles.separator]} />];
|
||||
var viewBinding4Props = {style: [styles.moreButtonContainer]};
|
||||
var pressableBindingProps = {style: [styles.moreButton], onPress: onPress_101241};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items6[1] = <View {...viewBinding4Props}><Pressable {...pressableBindingProps}><Text variant="heading-sm/semibold">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['9Ml56H'],
|
||||
|
||||
|
||||
{nextPageSize: r32})}</Text></Pressable></View>;
|
||||
r14 = <>{items6}</>;
|
||||
} else {
|
||||
r14 = value14;
|
||||
}
|
||||
items4[2] = r14;
|
||||
length = value8.length;
|
||||
r14 = length === 0 && status === 'active';
|
||||
r14 = r14 && <EmptyActiveState />;
|
||||
items4[3] = r14;
|
||||
length = value8.length;
|
||||
r10 = length === 0 && status === 'expired';
|
||||
r10 = r10 && <EmptyExpiredState />;
|
||||
items4[4] = r10;
|
||||
r5 = <View>{items4}</View>;
|
||||
} else {
|
||||
r5 = property;
|
||||
}
|
||||
return (
|
||||
<View style={items2}>
|
||||
{safetyHubViolationsHeader}
|
||||
{r5}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function RelativeIncidentTime({timestamp}) { // fn#101243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:3551, offset: 0x0220e01d, size: 128 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.incidentDate}>
|
||||
<Text variant="text-xs/medium">
|
||||
{(require(5266) /* metro dependency 5266: SafetyHubUtils */).getClassificationRelativeIncidentTime(timestamp)}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function NewBadge_101244() { // fn#101244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:3736, offset: 0x0220e09d, size: 175 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.incidentDate];
|
||||
items2[1] = styles.incidentDateNew;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const QKMRC4 = (require(1244) /* metro dependency 1244: indexNative */).t.QKMRC4;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<Text
|
||||
variant="text-xs/medium"
|
||||
color="always-white"
|
||||
style={styles.newText}
|
||||
>
|
||||
{Reflect.apply(string, intl, [QKMRC4])}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function ConnectedSafetyHubViolationsContainer() { // fn#101245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:6355, offset: 0x0220e14c, size: 192 bytes, params: 1, frame: 21
|
||||
const styles = useStyles();
|
||||
const value2 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useActiveSafetyHubClassifications();
|
||||
const value3 = (require(11479) /* metro dependency 11479: useSafetyHubClassifications */).useExpiredSafetyHubClassifications();
|
||||
return value2.length !== 0 ? <View style={[styles.connectedContainer]}><SafetyHubViolationsContainer status="active" classifications={value2} /><SafetyHubViolationsContainer status="expired" classifications={value3} /></View> : value3.length === 0 ? null : <View style={[styles.connectedContainer]}><SafetyHubViolationsContainer status="active" classifications={value2} /><SafetyHubViolationsContainer status="expired" classifications={value3} /></View>;
|
||||
}
|
||||
|
||||
function _fun101230() { // fn#101230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:4129, offset: 0x0220d932, size: 378 bytes, params: 1, frame: 21
|
||||
var environment;
|
||||
var member_type;
|
||||
var r1;
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value2;
|
||||
var value3;
|
||||
var Lb0HVv;
|
||||
var object3;
|
||||
const closure = descriptionHook;
|
||||
const object4 = {};
|
||||
var value;
|
||||
object4.description = description;
|
||||
object4.descriptionHook = closure;
|
||||
let guild_metadataBinding = guild_metadata;
|
||||
if (guild_metadataBinding != null) {
|
||||
guild_metadataBinding = guild_metadata;
|
||||
value2 = undefined;
|
||||
member_type = guild_metadataBinding == null ? value2 : guild_metadata.member_type;
|
||||
value3 = environment.__proto__;
|
||||
if (member_type === (require(5268) /* metro dependency 5268: SafetyHubModels */).MemberType.OWNER) {
|
||||
format = intl.format;
|
||||
Lb0HVv = t.Lb0HVv;
|
||||
object3 = {};
|
||||
copyDataProperties(object3, object4, undefined);
|
||||
object3['guildName'] = guild_metadata == null ? value2 : guild_metadata.name;
|
||||
r1 = Reflect.apply(format, intl, [Lb0HVv, object3]);
|
||||
} else {
|
||||
r1 = intl.format(t.rmpEPD, {classification_type: description, classificationHook: closure,
|
||||
guildName: guild_metadata == null ? value2 : guild_metadata.name});
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = intl.format(t.QY4g5t, object4);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun101235() { // fn#101235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:5219, offset: 0x0220deec, size: 26 bytes, params: 1, frame: 13
|
||||
return classifications.slice(0, env0_3);
|
||||
}
|
||||
|
||||
function _fun101236() { // fn#101236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:5257, offset: 0x0220df06, size: 151 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var SAFETY_HUB_ACTION;
|
||||
var object2;
|
||||
if (env0_1) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
SAFETY_HUB_ACTION = AnalyticEvents.SAFETY_HUB_ACTION;
|
||||
object2 = {};
|
||||
object2.action = SafetyHubAnalyticsActions.ViewViolationsDropdown;
|
||||
object2.account_standing = env0_5.state;
|
||||
object2.classification_ids = env0_7.map(function(a0) {
|
||||
var Number = global.Number;
|
||||
return Number(a0.id);
|
||||
});
|
||||
object2.source = SafetyHubAnalyticsActionSource.StandingTab;
|
||||
object2.is_violative_content_shown = false;
|
||||
object2.is_dsa_eligible = isDsaEligible;
|
||||
Reflect.apply(track, defaultImport, [SAFETY_HUB_ACTION, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function SafetyHubViolationsContainerOnClick() { // fn#101238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:5626, owner: SafetyHubViolationsContainer.onClick, offset: 0x0220dfb6, size: 25 bytes, params: 1, frame: 11
|
||||
return env0_2(function(a0) {
|
||||
return !a0;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun101240(a0) { // fn#101240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:5731, offset: 0x0220dfcf, size: 37 bytes, params: 2, frame: 15
|
||||
return <ClassificationDetail classification={a0} key={a0.id} />;
|
||||
}
|
||||
|
||||
function SafetyHubViolationsContainerOnPress() { // fn#101241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:5923, owner: SafetyHubViolationsContainer.onPress, offset: 0x0220dff4, size: 25 bytes, params: 1, frame: 11
|
||||
return env0_4(_fun101242);
|
||||
}
|
||||
|
||||
function classificationHook_101231(a0, a1) { // fn#101231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:4143, offset: 0x0220daac, size: 65 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return <Text {...{variant: 'heading-md/extrabold', children: a0}} key={a1} />;
|
||||
}
|
||||
|
||||
function _fun101242(a0) { // fn#101242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13468:5930, offset: 0x0220e00d, size: 16 bytes, params: 2, frame: 2
|
||||
return a0 + env1_8;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
/* Metro module 15260; source: modules/safety_hub/native/SuspendedUserPage.tsx; dependencies: [31, 27, 5267, 33, 4501, 697, 6618, 8341, 1244, 5076, 8160, 4573, 3853, 13272, 2] */
|
||||
function _fun116679(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15457:6, offset: 0x02492f44, size: 394 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
|
||||
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;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {'backgroundColor': null, 'display': 'flex', 'flexDirection': 'column', 'height': '100%',
|
||||
backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const object4 = {};
|
||||
const CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT;
|
||||
object4.backgroundColor = CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT;
|
||||
object4.flexDirection = 'row';
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingVertical = PX_8;
|
||||
object4.alignItems = 'center';
|
||||
object2.header = object4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.text = {'marginRight': null, 'textAlign': 'left', 'flexShrink': 1, marginRight: PX_8};
|
||||
object2.link = {textDecorationLine: 'underline'};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_hub/native/SuspendedUserPage.tsx');
|
||||
exports.default = SuspendedUserSafetyHubPage;
|
||||
}
|
||||
|
||||
function SuspendedUserSafetyHubPage() { // fn#116680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15457:669, offset: 0x024930ce, size: 523 bytes, params: 1, frame: 30
|
||||
const styles = useStyles();
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const items2 = [<IconButton variant="destructive" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={onPress_116681} icon={importDefault(8160) /* metro dependency 8160 */} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MG+Bzb']);
|
||||
const Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text style={styles.text} onPress={function() {
|
||||
importDefault(dependencyMap[12]).openURL(SafetyHubLinks.WARNING_SYSTEM_HELPCENTER_LINK);
|
||||
}} variant="text-xs/medium" color="control-critical-primary-text-default">{value}{' '}<Text2 style={styles.link} variant="text-xs/medium" color="control-critical-primary-text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9JceHN'])}</Text2></Text>;
|
||||
return (
|
||||
<SafeAreaPaddingView
|
||||
top
|
||||
right
|
||||
left
|
||||
>
|
||||
<View style={styles.container}>
|
||||
<View style={styles.header}>
|
||||
{items2}
|
||||
</View>
|
||||
{((Component) => <Component visible />)(importDefault(13272) /* metro dependency 13272: SafetyHubPage */)}
|
||||
</View>
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function SuspendedUserSafetyHubPageOnPress() { // fn#116681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15457:960, owner: SuspendedUserSafetyHubPage.onPress, offset: 0x024932d9, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).closeSuspendedUser();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user