Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,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);
}