Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+205
@@ -0,0 +1,205 @@
|
||||
/* Metro module 16022; source: modules/creator_monetization_eligibility/CreatorMonetizationEligibilityActionCreators.tsx; dependencies: [5, 661, 4238, 507, 694, 6772, 2] */
|
||||
function _fun123845(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:6, offset: 0x0259e3ab, size: 362 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
const env0_5 = (require(4238) /* metro dependency 4238: ApplicationConstants */).ApplicationTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/CreatorMonetizationEligibilityActionCreators.tsx');
|
||||
exports.createCreatorMonetizationEnableRequest = function() {
|
||||
return _createCreatorMonetizationEnableRequest.apply(this, arguments);
|
||||
};
|
||||
exports.getCreatorMonetizationEligibility = function() {
|
||||
return _getCreatorMonetizationEligibility.apply(this, arguments);
|
||||
};
|
||||
exports.acceptCreatorMonetizationTerms = function() {
|
||||
return _acceptCreatorMonetizationTerms.apply(this, arguments);
|
||||
};
|
||||
exports.acceptCreatorMonetizationTermsV2 = function() {
|
||||
return _acceptCreatorMonetizationTermsV.apply(this, arguments);
|
||||
};
|
||||
exports.getCreatorMonetizationOnboardingMarketing = function() {
|
||||
return _getCreatorMonetizationOnboardingMarketing.apply(this, arguments);
|
||||
};
|
||||
exports.ownershipTransferOnboard = function() {
|
||||
return _ownershipTransferOnboard.apply(this, arguments);
|
||||
};
|
||||
exports.acceptNewTerms = function(a0) {
|
||||
var HTTP = require(dependencyMap[3]).HTTP;
|
||||
var object = {};
|
||||
object.url = Endpoints.CREATOR_MONETIZATION_ACCEPT_NEW_TERMS(a0);
|
||||
object.rejectWithError = false;
|
||||
return HTTP.post(object);
|
||||
};
|
||||
exports.acceptNewTermsDemonetized = function(a0) {
|
||||
var HTTP = require(dependencyMap[3]).HTTP;
|
||||
var object = {};
|
||||
object.url = Endpoints.CREATOR_MONETIZATION_ACCEPT_NEW_TERMS_DEMONETIZED(a0);
|
||||
object.rejectWithError = false;
|
||||
return HTTP.post(object);
|
||||
};
|
||||
exports.removeMonetization = function() {
|
||||
return _removeMonetization.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _createCreatorMonetizationEnableRequest() { // fn#123846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:153, offset: 0x0259e515, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun123848).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _getCreatorMonetizationEligibility() { // fn#123849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:385, offset: 0x0259e5b3, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun123851).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _acceptCreatorMonetizationTerms() { // fn#123852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:615, offset: 0x0259e655, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun123854).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _acceptCreatorMonetizationTermsV() { // fn#123855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:832, offset: 0x0259e6f7, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun123857).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _getCreatorMonetizationOnboardingMarketing() { // fn#123858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1050, offset: 0x0259e795, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun123860).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _ownershipTransferOnboard() { // fn#123861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1305, offset: 0x0259e837, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun123863).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _requestRemoveMonetization() { // fn#123864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1661, offset: 0x0259e927, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun123866).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _removeMonetization() { // fn#123867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1879, offset: 0x0259e9cb, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun123869).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun123848(a0) { // fn#123848, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:254, offset: 0x0259e552, size: 97 bytes, params: 2, frame: 16
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[3]).HTTP;
|
||||
var post = HTTP.post;
|
||||
var object2 = {};
|
||||
object2.url = env2_4.CREATOR_MONETIZATION_ENABLE_REQUESTS(a0);
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(post, HTTP, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun123851(a0) { // fn#123851, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:476, offset: 0x0259e5f0, size: 101 bytes, params: 2, frame: 15
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const HTTP = env2_0(env2_2[3]).HTTP;
|
||||
const get = HTTP.get;
|
||||
const object2 = {};
|
||||
object2.url = env2_4.CREATOR_MONETIZATION_ELIGIBILITY(a0);
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(get, HTTP, [object2]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value.body;
|
||||
}
|
||||
|
||||
function* _fun123854(a0, a1) { // fn#123854, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:700, offset: 0x0259e692, size: 101 bytes, params: 3, frame: 18
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[3]).HTTP;
|
||||
var post = HTTP.post;
|
||||
var object2 = {};
|
||||
object2.url = env2_4.CREATOR_MONETIZATION_ACCEPT_TERMS(a0, a1);
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(post, HTTP, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun123857(a0) { // fn#123857, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:919, offset: 0x0259e734, size: 97 bytes, params: 2, frame: 16
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[3]).HTTP;
|
||||
var post = HTTP.post;
|
||||
var object2 = {};
|
||||
object2.url = env2_4.CREATOR_MONETIZATION_ACCEPT_TERMS_V2(a0);
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(post, HTTP, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun123860(a0) { // fn#123860, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1157, offset: 0x0259e7d2, size: 101 bytes, params: 2, frame: 15
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const HTTP = env2_0(env2_2[3]).HTTP;
|
||||
const get = HTTP.get;
|
||||
const object2 = {};
|
||||
object2.url = env2_4.CREATOR_MONETIZATION_MARKETING_ONBOARDING(a0);
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(get, HTTP, [object2]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value.body;
|
||||
}
|
||||
|
||||
function* _fun123863(a0, a1) { // fn#123863, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1378, offset: 0x0259e874, size: 179 bytes, params: 3, frame: 17
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const HTTP = env2_0(env2_2[3]).HTTP;
|
||||
const post = HTTP.post;
|
||||
const object2 = {};
|
||||
object2.url = env2_4.CREATOR_MONETIZATION_OWNERSHIP_TRANSFER_ONBOARD(a0);
|
||||
object2.body = {team_id: a1};
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(post, HTTP, [object2]);
|
||||
const value3 = undefined;
|
||||
if (false) {
|
||||
return value3;
|
||||
}
|
||||
const body = value3.body;
|
||||
if (body.application != null) {
|
||||
env2_1(env2_2[4]).dispatch({type: 'APPLICATION_FETCH_SUCCESS', application: body.application});
|
||||
}
|
||||
return body;
|
||||
}
|
||||
|
||||
function* _fun123866(a0) { // fn#123866, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1736, offset: 0x0259e964, size: 103 bytes, params: 2, frame: 16
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var HTTP = env2_0(env2_2[3]).HTTP;
|
||||
var post = HTTP.post;
|
||||
var object2 = {};
|
||||
object2.url = env2_4.CREATOR_MONETIZATION_REMOVE_MONETIZATION(a0);
|
||||
object2.body = {};
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(post, HTTP, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun123869(a0) { // fn#123869, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1940, offset: 0x0259ea08, size: 116 bytes, params: 2, frame: 17
|
||||
var environment;
|
||||
if (true) {
|
||||
yield requestRemoveMonetization(a0);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var value4 = env2_1(env2_2[5]);
|
||||
var getApplicationsForGuild = value4.getApplicationsForGuild;
|
||||
var GUILD_ROLE_SUBSCRIPTIONS = env2_5.GUILD_ROLE_SUBSCRIPTIONS;
|
||||
yield Reflect.apply(getApplicationsForGuild, value4, [a0, {type: GUILD_ROLE_SUBSCRIPTIONS, includeTeam: true}]);
|
||||
}
|
||||
}
|
||||
|
||||
function requestRemoveMonetization() { // fn#123870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16230:1966, offset: 0x0259ea7c, size: 30 bytes, params: 1, frame: 13
|
||||
return env3_12.apply(this, arguments);
|
||||
}
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/* Metro module 16019; source: modules/creator_monetization_eligibility/CreatorMonetizationEligibilityConstants.tsx; dependencies: [2] */
|
||||
function _fun123836(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16227:6, offset: 0x0259dc9f, size: 158 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/CreatorMonetizationEligibilityConstants.tsx');
|
||||
exports.CreatorMonetizationApplicationState = {OPEN: 'OPEN', REJECTED: 'REJECTED', APPROVED: 'APPROVED',
|
||||
ACTION_REQUIRED: 'ACTION_REQUIRED'};
|
||||
exports.CreatorMonetizationOnboardingMarketingSection = {HOW_IT_WORKS: 'HOW_IT_WORKS', BENEFITS: 'BENEFITS',
|
||||
OTHER_CREATORS: 'OTHER_CREATORS'};
|
||||
}
|
||||
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
/* Metro module 6851; source: modules/creator_monetization_eligibility/CreatorMonetizationEligibilityExperimentUtils.tsx; dependencies: [1878, 3804, 661, 6852, 566, 2] */
|
||||
function _fun54052(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7029:6, offset: 0x0135b9c2, size: 302 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
const getCreatorMonetizationEligibleCountry = function() {
|
||||
var r0;
|
||||
var value3;
|
||||
if (require(dependencyMap[3]).getIsStoreCountryExperimentEnabled('CreatorMonetizationEligibility')) {
|
||||
value3 = UserStore.getCurrentUser();
|
||||
r0 = value3 == null || value3.storeCountry == null ? undefined : value3.storeCountry.country;
|
||||
r0 = r0 ?? BillingInfoStore.ipCountryCode;
|
||||
} else {
|
||||
r0 = BillingInfoStore.ipCountryCode;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
const closure = function(a0) {
|
||||
return a0 != null;
|
||||
};
|
||||
const closure2 = function(a0) {
|
||||
return a0 != null;
|
||||
};
|
||||
const closure3 = useIsWhitegloveOnboardingGuild;
|
||||
const closure4 = isWhitegloveOnboardingGuild;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const billingInfoStore = importDefault(3804) /* metro dependency 3804: BillingInfoStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
const Set = global.Set;
|
||||
const set = new Set(['US']);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/CreatorMonetizationEligibilityExperimentUtils.tsx');
|
||||
exports.useIsUserInCreatorMonetizationEligibleCountry = function() {
|
||||
return require(dependencyMap[4]).useStateFromStores([UserStore, BillingInfoStore], _fun54059);
|
||||
};
|
||||
exports.isUserInCreatorMonetizationEligibleCountry = isUserInCreatorMonetizationEligibleCountry;
|
||||
exports.useIsRavenOnboardingGuild = closure;
|
||||
exports.isRavenOnboardingGuild = closure2;
|
||||
exports.useIsWhitegloveOnboardingGuild = closure3;
|
||||
exports.isWhitegloveOnboardingGuild = closure4;
|
||||
exports.useIsExpeditedOnboardingGuild = useIsExpeditedOnboardingGuild;
|
||||
exports.isExpeditedMonetizationOnboardingGuild = isExpeditedMonetizationOnboardingGuild;
|
||||
}
|
||||
|
||||
function useIsWhitegloveOnboardingGuild(a0) { // fn#54056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7029:503, offset: 0x0135bb5a, size: 43 bytes, params: 2, frame: 12
|
||||
return a0 != null && a0.features.has(GuildFeatures.CREATOR_MONETIZABLE_WHITEGLOVE);
|
||||
}
|
||||
|
||||
function useIsUserInCreatorMonetizationEligibleCountry() { // fn#54058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7029:888, offset: 0x0135bb85, size: 65 bytes, params: 1, frame: 14
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore, BillingInfoStore], _fun54059);
|
||||
}
|
||||
|
||||
function isUserInCreatorMonetizationEligibleCountry() { // fn#54060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7029:1111, offset: 0x0135bbec, size: 38 bytes, params: 1, frame: 12
|
||||
const creatorMonetizationEligibleCountry = getCreatorMonetizationEligibleCountry();
|
||||
return creatorMonetizationEligibleCountry != null && env0_5.has(creatorMonetizationEligibleCountry);
|
||||
}
|
||||
|
||||
function useIsExpeditedOnboardingGuild(a0) { // fn#54061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7029:1493, offset: 0x0135bc12, size: 50 bytes, params: 2, frame: 14
|
||||
return useIsRavenOnboardingGuild(a0?.id) || useIsWhitegloveOnboardingGuild(a0);
|
||||
}
|
||||
|
||||
function isExpeditedMonetizationOnboardingGuild(a0) { // fn#54062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7029:1678, offset: 0x0135bc44, size: 47 bytes, params: 2, frame: 14
|
||||
return isRavenOnboardingGuild(a0?.id) || isWhitegloveOnboardingGuild(a0);
|
||||
}
|
||||
|
||||
function _fun54059() { // fn#54059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7029:986, offset: 0x0135bbc6, size: 38 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const creatorMonetizationEligibleCountry = getCreatorMonetizationEligibleCountry();
|
||||
return creatorMonetizationEligibleCountry != null && env1_5.has(creatorMonetizationEligibleCountry);
|
||||
}
|
||||
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
/* Metro module 14720; source: modules/creator_monetization_eligibility/feature_education/OnboardingV2Utils.tsx; dependencies: [1422, 1867, 1878, 661, 566, 6850, 2] */
|
||||
function _fun111015(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14917:6, offset: 0x0239000f, size: 243 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(1422) /* metro dependency 1422: GuildRecord */).isGuildOwner;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const GuildFeatures = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
const CREATOR_MONETIZABLE_PROVISIONAL = GuildFeatures.CREATOR_MONETIZABLE_PROVISIONAL;
|
||||
items = [CREATOR_MONETIZABLE_PROVISIONAL];
|
||||
const CREATOR_MONETIZABLE = GuildFeatures.CREATOR_MONETIZABLE;
|
||||
items[1] = CREATOR_MONETIZABLE;
|
||||
const CREATOR_MONETIZABLE_WHITEGLOVE = GuildFeatures.CREATOR_MONETIZABLE_WHITEGLOVE;
|
||||
items[2] = CREATOR_MONETIZABLE_WHITEGLOVE;
|
||||
const CREATOR_MONETIZABLE_DISABLED = GuildFeatures.CREATOR_MONETIZABLE_DISABLED;
|
||||
items[3] = CREATOR_MONETIZABLE_DISABLED;
|
||||
const CREATOR_MONETIZABLE_RESTRICTED = GuildFeatures.CREATOR_MONETIZABLE_RESTRICTED;
|
||||
items[4] = CREATOR_MONETIZABLE_RESTRICTED;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/feature_education/OnboardingV2Utils.tsx');
|
||||
exports.useCanSeeCreatorMonetizationOnboardingV2Upsell = useCanSeeCreatorMonetizationOnboardingV2Upsell;
|
||||
exports.canSeeCreatorMonetizationOnboardingV2Upsell = canSeeCreatorMonetizationOnboardingV2Upsell;
|
||||
}
|
||||
|
||||
function useCanSeeCreatorMonetizationOnboardingV2Upsell(a0) { // fn#111016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14917:483, offset: 0x02390102, size: 211 bytes, params: 2, frame: 19
|
||||
const env0_0 = a0;
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun111017);
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const value2 = (require(6850) /* metro dependency 6850: GuildRoleSubscriptionSettingUtils */).useGuildRoleSubscriptionSettingsVisibility(guild);
|
||||
const GuildRoleSubscriptionSettingsVisibility = (require(6850) /* metro dependency 6850: GuildRoleSubscriptionSettingUtils */).GuildRoleSubscriptionSettingsVisibility;
|
||||
const VISIBLE = GuildRoleSubscriptionSettingsVisibility.VISIBLE;
|
||||
const value3 = value2 === VISIBLE;
|
||||
if (guild == null) {
|
||||
return false;
|
||||
}
|
||||
return value3 && isGuildOwner(guild, currentUser) && env0_5.every(function(a0) {
|
||||
return !guild.features.has(a0);
|
||||
});
|
||||
}
|
||||
|
||||
function canSeeCreatorMonetizationOnboardingV2Upsell(a0) { // fn#111020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14917:903, offset: 0x023901f4, size: 165 bytes, params: 2, frame: 19
|
||||
const guild = GuildStore.getGuild(a0);
|
||||
if (guild == null) {
|
||||
return false;
|
||||
}
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
if (currentUser == null) {
|
||||
return false;
|
||||
}
|
||||
const guildRoleSubscriptionSettingsVisibility = (require(6850) /* metro dependency 6850: GuildRoleSubscriptionSettingUtils */).getGuildRoleSubscriptionSettingsVisibility(guild);
|
||||
const GuildRoleSubscriptionSettingsVisibility = (require(6850) /* metro dependency 6850: GuildRoleSubscriptionSettingUtils */).GuildRoleSubscriptionSettingsVisibility;
|
||||
const VISIBLE = GuildRoleSubscriptionSettingsVisibility.VISIBLE;
|
||||
return guildRoleSubscriptionSettingsVisibility === VISIBLE && isGuildOwner(guild,
|
||||
currentUser) && env0_5.every(_fun111021);
|
||||
}
|
||||
|
||||
function _fun111021(a0) { // fn#111021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14917:1182, offset: 0x02390299, size: 31 bytes, params: 2, frame: 11
|
||||
const features = env0_0.features;
|
||||
return !features.has(a0);
|
||||
}
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/* Metro module 16051; source: modules/creator_monetization_eligibility/guild_settings/CreatorMonetizationAcceptTermCheckboxText.tsx; dependencies: [661, 1244, 1948, 2] */
|
||||
function _fun123972(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16259:6, offset: 0x025a32d0, size: 124 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/guild_settings/CreatorMonetizationAcceptTermCheckboxText.tsx');
|
||||
exports.getCreatorMonetizationAcceptTermsCheckboxText = getCreatorMonetizationAcceptTermsCheckboxText;
|
||||
}
|
||||
|
||||
function getCreatorMonetizationAcceptTermsCheckboxText() { // fn#123973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16259:306, offset: 0x025a334c, size: 142 bytes, params: 1, frame: 21
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const format = intl.format;
|
||||
const property = (require(1244) /* metro dependency 1244: indexNative */).t['+ALa7+'];
|
||||
const object2 = {};
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
let getArticleURL = defaultImport.getArticleURL;
|
||||
const CREATOR_TERMS = HelpdeskArticles.CREATOR_TERMS;
|
||||
object2.fullTermsUrl = Reflect.apply(getArticleURL, defaultImport, [CREATOR_TERMS]);
|
||||
const value = defaultImport;
|
||||
getArticleURL = value.getArticleURL;
|
||||
const CREATOR_POLICY = HelpdeskArticles.CREATOR_POLICY;
|
||||
object2.creatorRevenuePolicyUrl = Reflect.apply(getArticleURL, value, [CREATOR_POLICY]);
|
||||
return Reflect.apply(format, intl, [property, object2]);
|
||||
}
|
||||
|
||||
+188
@@ -0,0 +1,188 @@
|
||||
/* Metro module 16024; source: modules/creator_monetization_eligibility/guild_settings/useCreatorMonetizationEligibilityItems.tsx; dependencies: [5, 31, 661, 16025, 16026, 1244, 1948, 3847, 16027, 2] */
|
||||
function _fun123885(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16232:6, offset: 0x0259ee49, size: 159 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/guild_settings/useCreatorMonetizationEligibilityItems.tsx');
|
||||
exports.default = useCreatorMonetizationEligibilityItems;
|
||||
}
|
||||
|
||||
function useCreatorMonetizationEligibilityItems(a0) { // fn#123886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16232:287, offset: 0x0259eee8, size: 262 bytes, params: 2, frame: 24
|
||||
let value = a1;
|
||||
const env0_0 = a0;
|
||||
const {onEligibilityBecameStale, actions, sortedByIneligible} = value !== undefined ? value : {};
|
||||
const env0_3 = sortedByIneligible;
|
||||
const value2 = (require(16025) /* metro dependency 16025: useIsMFAEnabled */).useIsMFAEnabled();
|
||||
const isUserMFAEnabled = value2.isUserMFAEnabled;
|
||||
const env0_4 = isUserMFAEnabled;
|
||||
const isModerationMFAEnabled = value2.isModerationMFAEnabled;
|
||||
const binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
value = env0_3(_fun123888);
|
||||
value = Reflect.apply(useCallback, binding, [value, [isUserMFAEnabled, isModerationMFAEnabled,
|
||||
onEligibilityBecameStale, actions]]);
|
||||
return binding.useMemo(_fun123889, [a0, sortedByIneligible, isUserMFAEnabled, actions, isModerationMFAEnabled,
|
||||
(require(16026) /* metro dependency 16026: useEnableMFAHookNative */).useEnableMFAHook({onEnableMFAClick: value}),
|
||||
value]);
|
||||
}
|
||||
|
||||
function* _fun123888() { // fn#123888, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16232:500, offset: 0x0259eff9, size: 177 bytes, params: 1, frame: 13
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
if (env1_4) {
|
||||
if (HelpdeskArticles) {
|
||||
if (importDefault != null) {
|
||||
importDefault();
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
yield dependencyMap == null || dependencyMap.onRequireModeratorMFAClick == null ? undefined : dependencyMap.onRequireModeratorMFAClick();
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (importDefault != null) {
|
||||
importDefault();
|
||||
}
|
||||
} else {
|
||||
yield dependencyMap == null || dependencyMap.onEnableMFAClick == null ? undefined : dependencyMap.onEnableMFAClick();
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (importDefault != null) {
|
||||
importDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun123889() { // fn#123889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16232:769, offset: 0x0259f0aa, size: 2176 bytes, params: 1, frame: 27
|
||||
var r4;
|
||||
var r7;
|
||||
var push;
|
||||
var formatToPlainString;
|
||||
var Zwv84O;
|
||||
var object2;
|
||||
var defaultImport2;
|
||||
if (env0_0 == null) {
|
||||
return null;
|
||||
}
|
||||
let binding = env0_0;
|
||||
const minimumOwnerAgeInYears = binding.minimumOwnerAgeInYears;
|
||||
const minimumSize = binding.minimumSize;
|
||||
const noRecentViolations = binding.noRecentViolations;
|
||||
let object3 = {key: 'no_violations_requirement'};
|
||||
const value3 = undefined;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object3.checkedLabel = Reflect.apply(string, intl, [t['1lGNPZ']]);
|
||||
object3.uncheckedLabel = intl.string(t['D+gTJt']);
|
||||
const format = intl.format;
|
||||
const HFY0m6 = t.HFY0m6;
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const PUBLIC_GUILD_GUILDLINES = HelpdeskArticles.PUBLIC_GUILD_GUILDLINES;
|
||||
object3.description = Reflect.apply(format, intl, [HFY0m6, {communityGuidelinesUrl: Reflect.apply(getArticleURL,
|
||||
defaultImport, [PUBLIC_GUILD_GUILDLINES])}]);
|
||||
object3.checked = binding.noRecentViolations;
|
||||
object3.actionLabel = noRecentViolations ? value3 : intl.string(t['xU2fl+']);
|
||||
object3.actionHandler = noRecentViolations ? value3 : _fun123890;
|
||||
const items2 = [object3];
|
||||
if (minimumOwnerAgeInYears != null && env0_0.meetsOwnerAgeRequirement != null) {
|
||||
push = items2.push;
|
||||
object3 = {key: 'owner_age_requirement'};
|
||||
object3.checkedLabel = intl.string(t['+F8haD']);
|
||||
object3.uncheckedLabel = intl.string(t['5BwC/O']);
|
||||
object3.description = intl.formatToPlainString(t.DW1Vae, {minimumOwnerAgeInYears: minimumOwnerAgeInYears});
|
||||
object3.checked = env0_0.meetsOwnerAgeRequirement;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
if (minimumSize != null && env0_0.hasSufficientMembers != null) {
|
||||
push = items2.push;
|
||||
object3 = {key: 'member_count_requirement'};
|
||||
object3.checkedLabel = intl.string(t.j7wXWo);
|
||||
object3.uncheckedLabel = intl.string(t.W0suNz);
|
||||
object3.description = intl.formatToPlainString(t.up53zR, {minimumSize: minimumSize});
|
||||
object3.checked = env0_0.hasSufficientMembers;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
if (env0_0.minimumAgeInDays != null && env0_0.meetsServerAgeRequirement != null) {
|
||||
push = items2.push;
|
||||
object3 = {key: 'server_age_requirement'};
|
||||
object3.checkedLabel = intl.string(t.mjbvWw);
|
||||
object3.uncheckedLabel = intl.string(t['9BV6L6']);
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
Zwv84O = t.Zwv84O;
|
||||
object2 = {};
|
||||
defaultImport2 = importDefault(16027) /* metro dependency 16027: formatDurationFromDays */;
|
||||
binding = env0_0;
|
||||
object2.minimumAge = defaultImport2(binding.minimumAgeInDays);
|
||||
object3.description = Reflect.apply(formatToPlainString, intl, [Zwv84O, object2]);
|
||||
object3.checked = binding.meetsServerAgeRequirement;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
if (env0_0.weeklyCommunicators != null) {
|
||||
push = items2.push;
|
||||
object3 = {key: 'weekly_communicator_count_requirement'};
|
||||
object3.checkedLabel = intl.string(t.Qw7qv4);
|
||||
object3.uncheckedLabel = intl.string(t.b45kGG);
|
||||
object3.description = intl.string(t.NbtjEC);
|
||||
object3.checked = env0_0.weeklyCommunicators;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
if (env0_0.hasMemberRetention != null) {
|
||||
push = items2.push;
|
||||
object3 = {key: 'member_retention_requirement'};
|
||||
object3.checkedLabel = intl.string(t.Qvq39M);
|
||||
object3.uncheckedLabel = intl.string(t.azHboI);
|
||||
object3.description = intl.string(t.u4rCYO);
|
||||
object3.checked = env0_0.hasMemberRetention;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
push = items2.push;
|
||||
object3 = {key: 'nsfw_requirement'};
|
||||
object3.checkedLabel = intl.string(t.bymfTb);
|
||||
object3.uncheckedLabel = intl.string(t['718pRA']);
|
||||
object3.description = intl.string(t['5ZqX+j']);
|
||||
binding = env0_0;
|
||||
object3.checked = binding.notNSFW;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
let hasEnabled2FA = binding.hasEnabled2FA;
|
||||
if (hasEnabled2FA != null) {
|
||||
hasEnabled2FA = env0_0.hasEnabled2FA;
|
||||
r7 = !hasEnabled2FA && !isUserMFAEnabled;
|
||||
r7 = r7 && (actions == null ? value3 : actions.onEnableMFAClick) != null;
|
||||
hasEnabled2FA = env0_0.hasEnabled2FA;
|
||||
r4 = !hasEnabled2FA && !isModerationMFAEnabled;
|
||||
r4 = r4 && (actions == null ? value3 : actions.onRequireModeratorMFAClick) != null;
|
||||
r7 = !r7 ? r4 : r7;
|
||||
push = items2.push;
|
||||
object3 = {key: '2fa_requirement'};
|
||||
object3.checkedLabel = intl.string(t.NqVyFk);
|
||||
object3.uncheckedLabel = intl.string(t.VcDNIV);
|
||||
object3.description = intl.format(t['7NzkfV'], {enableMFAHook: env0_7});
|
||||
hasEnabled2FA = env0_0.hasEnabled2FA;
|
||||
object3.checked = hasEnabled2FA;
|
||||
object3.actionLabel = r7 ? intl.string(t.BU4Diu) : value3;
|
||||
object3.actionHandler = r7 ? env0_6 : value3;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
if (sortedByIneligible === true) {
|
||||
items2.sort(function(a0) {
|
||||
return a0.checked ? 0 : -1;
|
||||
});
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun123890() { // fn#123890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16232:1245, offset: 0x0259f92a, size: 54 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(3847) /* metro dependency 3847: openURL */;
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getSubmitRequestURL = defaultImport.getSubmitRequestURL;
|
||||
return value(Reflect.apply(getSubmitRequestURL, defaultImport, []));
|
||||
}
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/* Metro module 16052; source: modules/creator_monetization_eligibility/guild_settings/useCreatorMonetizationIneligibleReasons.tsx; dependencies: [16024, 2] */
|
||||
function _fun123974(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16260:6, offset: 0x025a33da, size: 99 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/guild_settings/useCreatorMonetizationIneligibleReasons.tsx');
|
||||
exports.useCreatorMonetizationIneligibleReasons = useCreatorMonetizationIneligibleReasons;
|
||||
}
|
||||
|
||||
function useCreatorMonetizationIneligibleReasons(a0) { // fn#123975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16260:267, offset: 0x025a343d, size: 75 bytes, params: 2, frame: 13
|
||||
const value = undefined;
|
||||
const value2 = (importDefault(16024) /* metro dependency 16024: useCreatorMonetizationEligibilityItems */)(a0);
|
||||
const value3 = null;
|
||||
const r1 = value3 == value2 ? value : value2.flatMap(function(a0) {
|
||||
return a0.checked ? [] : [a0.key];
|
||||
});
|
||||
return value3 != r1 ? r1 : value3;
|
||||
}
|
||||
|
||||
+227
@@ -0,0 +1,227 @@
|
||||
/* Metro module 16053; source: modules/creator_monetization_eligibility/guild_settings/useCreatorMonetizationOnboardingMarketing.tsx; dependencies: [5, 57, 31, 16022, 4131, 2] */
|
||||
function _fun123977(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16261:6, offset: 0x025a34a9, size: 153 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/guild_settings/useCreatorMonetizationOnboardingMarketing.tsx');
|
||||
exports.default = useCreatorMonetizationOnboardingMarketing;
|
||||
}
|
||||
|
||||
function useCreatorMonetizationOnboardingMarketing(a0) { // fn#123978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16261:274, offset: 0x025a3542, size: 192 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [true]);
|
||||
const binding2 = env0_4;
|
||||
let value = binding2(value2, 2);
|
||||
const property = value[0];
|
||||
const env0_1 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, []), 2);
|
||||
const property2 = value[0];
|
||||
const env0_2 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, []), 2);
|
||||
const property3 = value[0];
|
||||
const env0_3 = value[1];
|
||||
const useCallback = binding.useCallback;
|
||||
value = _fun123979();
|
||||
value = Reflect.apply(useCallback, binding, [value, []]);
|
||||
binding.useEffect(_fun123983, [a0, value]);
|
||||
return {isLoading: property, error: property2, creatorMonetizationOnboardingMarketing: property3};
|
||||
}
|
||||
|
||||
function _fun123979() { // fn#123979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16261:464, offset: 0x025a3602, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun123981);
|
||||
return _fun123982;
|
||||
}
|
||||
|
||||
function* _fun123981(a0) { // fn#123981, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16261:484, offset: 0x025a3631, size: 202 bytes, params: 2, frame: 16
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var getCreatorMonetizationOnboardingMarketing;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var error;
|
||||
var binding3;
|
||||
var value8;
|
||||
var APIError;
|
||||
var prototype;
|
||||
var aPIError;
|
||||
var value10;
|
||||
exceptionLanding33: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
importAll(true);
|
||||
dependencyMap(undefined);
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort32: while (true) {
|
||||
exceptionLanding17: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
binding3 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
property = binding3[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
value8 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
APIError = value8.APIError;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
prototype = APIError.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
aPIError = new APIError();
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
value10 = aPIError instanceof Object ? aPIError : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
dependencyMap(value10);
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
break reduciblePort32;
|
||||
}
|
||||
importAll(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
getCreatorMonetizationOnboardingMarketing = value4.getCreatorMonetizationOnboardingMarketing;
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value5 = Reflect.apply(getCreatorMonetizationOnboardingMarketing, value4, [a0]);
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
if (value7) {
|
||||
importAll(false);
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding(value6);
|
||||
} catch (error) {
|
||||
break exceptionLanding17;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
importAll(false);
|
||||
return undefined;
|
||||
}
|
||||
importAll(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
/* Metro module 16026; source: modules/creator_monetization_eligibility/guild_settings/useEnableMFAHook.native.tsx; dependencies: [2] */
|
||||
function _fun123896(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16234:6, offset: 0x0259fab8, size: 98 bytes, params: 8, frame: 16
|
||||
const passthrough = function(a0) {
|
||||
return a0;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/guild_settings/useEnableMFAHook.native.tsx');
|
||||
exports.useEnableMFAHook = function() {
|
||||
return passthrough;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 16025; source: modules/creator_monetization_eligibility/guild_settings/useIsMFAEnabled.tsx; dependencies: [9113, 1878, 661, 632, 2] */
|
||||
function _fun123892(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16233:6, offset: 0x0259f976, size: 152 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).MFALevels;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/guild_settings/useIsMFAEnabled.tsx');
|
||||
exports.useIsMFAEnabled = useIsMFAEnabled_123893;
|
||||
}
|
||||
|
||||
function useIsMFAEnabled_123893() { // fn#123893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16233:263, offset: 0x0259fa0e, size: 145 bytes, params: 1, frame: 19
|
||||
const value2 = undefined;
|
||||
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
||||
function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const mfaLevel = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildSettingsStore],
|
||||
function() {
|
||||
return GuildSettingsStore.getProps().mfaLevel;
|
||||
});
|
||||
const ELEVATED = MFALevels.ELEVATED;
|
||||
return {isUserMFAEnabled: (currentUser == null ? value2 : currentUser.mfaEnabled) === true,
|
||||
isModerationMFAEnabled: mfaLevel === ELEVATED};
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
/* Metro module 16047; source: modules/creator_monetization_eligibility/guild_settings/useOnboardingMonetizationEnableFlow.tsx; dependencies: [31, 1422, 1878, 661, 6851, 632, 16048, 16049, 16050, 6843, 1244, 1948, 16051, 2] */
|
||||
function _fun123953(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16255:6, offset: 0x025a23c6, size: 201 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 env0_4 = (require(1422) /* metro dependency 1422: GuildRecord */).isGuildOwner;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = constantsModule.GuildFeatures;
|
||||
const env0_7 = constantsModule.HelpdeskArticles;
|
||||
const env0_8 = constantsModule.MarketingURLs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/guild_settings/useOnboardingMonetizationEnableFlow.tsx');
|
||||
exports.default = useOnboardingMonetizationEnableFlow;
|
||||
}
|
||||
|
||||
function useOnboardingMonetizationEnableFlow(a0) { // fn#123954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16255:346, offset: 0x025a248f, size: 1178 bytes, params: 2, frame: 41
|
||||
var object2;
|
||||
var r7;
|
||||
var TvX207;
|
||||
var defaultImport4;
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(6851) /* metro dependency 6851: CreatorMonetizationEligibilityExperimentUtils */).useIsExpeditedOnboardingGuild(a0);
|
||||
let r6 = a0 == null ? value2 : a0.features.has(GuildFeatures.CREATOR_MONETIZABLE_PROVISIONAL);
|
||||
const r20 = a0 == null ? value2 : a0.features.has(GuildFeatures.CREATOR_MONETIZABLE);
|
||||
const value6 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
||||
_fun123955);
|
||||
const {error, loading, createEnableRequest,
|
||||
submittedRequest} = (importDefault(16048) /* metro dependency 16048: useCreateCreatorMonetizationEnableRequest */)(a0 == null ? value2 : a0.id);
|
||||
const value8 = (importDefault(16049) /* metro dependency 16049: useCreatorMonetizationEligibility */)(a0 == null ? value2 : a0.id);
|
||||
const loading2 = value8.loading;
|
||||
const error2 = value8.error;
|
||||
const refresh = value8.refresh;
|
||||
const eligibility = value8.eligibility;
|
||||
const {isApplicationRejected,
|
||||
requestCooldownDuration} = (importDefault(16050) /* metro dependency 16050: useIsCreatorMonetizationRequestRejected */)(eligibility);
|
||||
const r4 = (a0 == null ? value2 : a0.features.has(GuildFeatures.CREATOR_MONETIZABLE_RESTRICTED)) === true || (a0 == null ? value2 : a0.features.has(GuildFeatures.CREATOR_MONETIZABLE_DISABLED)) === true;
|
||||
const creatorMonetizationRestrictionsHooksModule = require(6843) /* metro dependency 6843: CreatorMonetizationRestrictionsHooks */;
|
||||
const useIsMonetizationReapplicationDisabled = creatorMonetizationRestrictionsHooksModule.useIsMonetizationReapplicationDisabled;
|
||||
const isMonetizationReapplicationDisabled = Reflect.apply(useIsMonetizationReapplicationDisabled,
|
||||
creatorMonetizationRestrictionsHooksModule, [a0 == null ? value2 : a0.id]).isMonetizationReapplicationDisabled;
|
||||
const r8 = submittedRequest || (eligibility == null ? value2 : eligibility.isApplicationPending) === true;
|
||||
const value15 = (eligibility == null ? value2 : eligibility.canApply) === true;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let format = intl.format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const aJUdOi = t.aJUdOi;
|
||||
object2 = {};
|
||||
const defaultImport3 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport3.getArticleURL;
|
||||
const CREATOR_FAQ = HelpdeskArticles.CREATOR_FAQ;
|
||||
object2.faqUrl = Reflect.apply(getArticleURL, defaultImport3, [CREATOR_FAQ]);
|
||||
const value16 = Reflect.apply(format, intl, [aJUdOi, object2]);
|
||||
if (isApplicationRejected) {
|
||||
if (isMonetizationReapplicationDisabled) {
|
||||
r7 = r6 === true ? intl.format(t['0o1Q+t'],
|
||||
{communityGuidelineUrl: MarketingURLs.GUIDELINES}) : intl.format(t.b6h59n,
|
||||
{communityGuidelineUrl: MarketingURLs.GUIDELINES});
|
||||
} else if (isApplicationRejected && requestCooldownDuration != null) {
|
||||
format = intl.format;
|
||||
TvX207 = t.TvX207;
|
||||
object2 = {requestCooldownDuration: requestCooldownDuration};
|
||||
defaultImport4 = defaultImport3;
|
||||
object2.creatorRevenuePolicyUrl = defaultImport4.getArticleURL(HelpdeskArticles.CREATOR_POLICY);
|
||||
r7 = Reflect.apply(format, intl, [TvX207, object2]);
|
||||
} else {
|
||||
r7 = value2;
|
||||
}
|
||||
} else if (isApplicationRejected && requestCooldownDuration != null) {
|
||||
format = intl.format;
|
||||
TvX207 = t.TvX207;
|
||||
object2 = {requestCooldownDuration: requestCooldownDuration};
|
||||
defaultImport4 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
object2.creatorRevenuePolicyUrl = defaultImport4.getArticleURL(HelpdeskArticles.CREATOR_POLICY);
|
||||
r7 = Reflect.apply(format, intl, [TvX207, object2]);
|
||||
} else {
|
||||
r7 = value2;
|
||||
}
|
||||
const r22 = value3 && value6 && r20 === false;
|
||||
let r3 = value3 && r6 === false;
|
||||
const creatorMonetizationAcceptTermsCheckboxText = (require(16051) /* metro dependency 16051: CreatorMonetizationAcceptTermCheckboxText */).getCreatorMonetizationAcceptTermsCheckboxText();
|
||||
r6 = isApplicationRejected && value15 && value6 ? intl.format(t.wbVIUB, {}) : value2;
|
||||
env0_3.useEffect(_fun123956, [refresh, r22]);
|
||||
object2 = {resubmittingEnableRequest: loading, resubmissionError: error, isGuildOwner: value6,
|
||||
createEnableRequest: createEnableRequest, resubmittedRequest: submittedRequest, eligibilityLoading: loading2,
|
||||
eligibilityError: error2, refreshEligibility: refresh, eligibility: eligibility,
|
||||
eligibleForMonetization: value15, isApplicationPending: r8,
|
||||
hasPreviousApplicationRejection: isApplicationRejected, requestRejectedNoticeText: r7, reapplyNoticeText: r6,
|
||||
showAcceptTermsFlow: r3};
|
||||
r3 = r3 && (!r4 ? isApplicationRejected : r4);
|
||||
object2.wasRejectedInV1 = r3;
|
||||
object2.requirementsFinePrintText = value16;
|
||||
object2.acceptTermsCheckboxText = creatorMonetizationAcceptTermsCheckboxText;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun123955() { // fn#123955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16255:599, offset: 0x025a2929, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return env0_0 != null && isGuildOwner(env0_0, UserStore.getCurrentUser());
|
||||
}
|
||||
|
||||
+226
@@ -0,0 +1,226 @@
|
||||
/* Metro module 16048; source: modules/creator_monetization_eligibility/useCreateCreatorMonetizationEnableRequest.tsx; dependencies: [5, 57, 31, 16022, 4132, 2] */
|
||||
function _fun123957(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16256:6, offset: 0x025a295b, size: 153 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/useCreateCreatorMonetizationEnableRequest.tsx');
|
||||
exports.default = useCreateCreatorMonetizationEnableRequest;
|
||||
}
|
||||
|
||||
function useCreateCreatorMonetizationEnableRequest(a0) { // fn#123958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16256:259, offset: 0x025a29f4, size: 173 bytes, params: 2, frame: 22
|
||||
const env0_0 = a0;
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, []);
|
||||
const binding2 = env0_4;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const env0_1 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value4[0];
|
||||
const env0_2 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property3 = value5[0];
|
||||
const env0_3 = value5[1];
|
||||
const object2 = {error: property, loading: property2};
|
||||
object2.createEnableRequest = binding.useCallback(env0_3(_fun123960), [a0]);
|
||||
object2.submittedRequest = property3;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function* _fun123960() { // fn#123960, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16256:497, offset: 0x025a2aac, size: 217 bytes, params: 1, frame: 17
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var createCreatorMonetizationEnableRequest;
|
||||
var creatorMonetizationEnableRequest;
|
||||
var value5;
|
||||
var value6;
|
||||
var error;
|
||||
var binding3;
|
||||
var value7;
|
||||
var prototype;
|
||||
var value9;
|
||||
var value10;
|
||||
exceptionLanding35: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
if (importDefault != null) {
|
||||
dependencyMap(true);
|
||||
importAll(undefined);
|
||||
env1_3(false);
|
||||
value3 = environment.__proto__.__proto__;
|
||||
reducibleJoin5: while (true) {
|
||||
reduciblePort33: while (true) {
|
||||
exceptionLanding19: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
break reducibleJoin5;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
property = binding3[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
prototype = value7.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value9 = new value7();
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
value10 = value9 instanceof Object ? value9 : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
importAll(value10);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
break reduciblePort33;
|
||||
}
|
||||
dependencyMap(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
createCreatorMonetizationEnableRequest = value4.createCreatorMonetizationEnableRequest;
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
creatorMonetizationEnableRequest = Reflect.apply(createCreatorMonetizationEnableRequest, value4,
|
||||
[importDefault]);
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
yield creatorMonetizationEnableRequest;
|
||||
try {
|
||||
try {
|
||||
value5 = undefined;
|
||||
value6 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
if (value6) {
|
||||
dependencyMap(false);
|
||||
return value5;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env1_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding(true);
|
||||
} catch (error) {
|
||||
break exceptionLanding19;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
dependencyMap(false);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
dependencyMap(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
+359
@@ -0,0 +1,359 @@
|
||||
/* Metro module 16021; source: modules/creator_monetization_eligibility/useCreatorMonetizationAcceptTerms.tsx; dependencies: [5, 57, 31, 1422, 1867, 1878, 566, 6851, 16022, 4132, 2] */
|
||||
function _fun123839(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16229:6, offset: 0x0259e052, size: 211 bytes, params: 8, frame: 20
|
||||
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(1422) /* metro dependency 1422: GuildRecord */).isGuildOwner;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/useCreatorMonetizationAcceptTerms.tsx');
|
||||
exports.default = useCreateCreatorMonetizationAcceptTermsRequest;
|
||||
}
|
||||
|
||||
function useCreateCreatorMonetizationAcceptTermsRequest(a0, a1) { // fn#123840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16229:295, offset: 0x0259e125, size: 289 bytes, params: 3, frame: 27
|
||||
var object2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun123841);
|
||||
const binding = env0_6;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, []);
|
||||
const binding2 = env0_5;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const env0_3 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value4[0];
|
||||
const env0_4 = value4[1];
|
||||
const value5 = (require(6851) /* metro dependency 6851: CreatorMonetizationEligibilityExperimentUtils */).useIsExpeditedOnboardingGuild(guild);
|
||||
object2 = {};
|
||||
object2.canSubmitAcceptance = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore],
|
||||
_fun123842, [guild]);
|
||||
object2.error = property;
|
||||
object2.loading = property2;
|
||||
object2.submitAcceptTermsRequest = binding.useCallback(env0_4(_fun123844), [a0, a1, value5]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun123842() { // fn#123842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16229:594, offset: 0x0259e246, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return guild != null && isGuildOwner(guild, UserStore.getCurrentUser());
|
||||
}
|
||||
|
||||
function* _fun123844() { // fn#123844, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16229:714, offset: 0x0259e283, size: 296 bytes, params: 1, frame: 17
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var acceptCreatorMonetizationTermsV2;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
var binding3;
|
||||
var value10;
|
||||
var acceptCreatorMonetizationTerms;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
var error;
|
||||
var value14;
|
||||
var binding4;
|
||||
var value15;
|
||||
var prototype;
|
||||
var value17;
|
||||
var value18;
|
||||
exceptionLanding51: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
if (require != null) {
|
||||
reducibleJoin50: while (true) {
|
||||
reducibleJoin6: while (true) {
|
||||
if (env1_5) {
|
||||
env1_4(true);
|
||||
dependencyMap(undefined);
|
||||
reduciblePort49: while (true) {
|
||||
exceptionLanding35: while (true) {
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
break reducibleJoin6;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
value14 = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
property = binding4[9];
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
value15 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
prototype = value15.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
value17 = new value15();
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
value18 = value17 instanceof Object ? value17 : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
dependencyMap(value18);
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
break reduciblePort49;
|
||||
}
|
||||
env1_4(false);
|
||||
break reducibleJoin50;
|
||||
}
|
||||
if (importDefault == null) {
|
||||
break reducibleJoin50;
|
||||
}
|
||||
env1_4(true);
|
||||
dependencyMap(undefined);
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
break reducibleJoin6;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value3 = importDefault != null;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
if (value3) {
|
||||
value9 = environment.__proto__.__proto__;
|
||||
try {
|
||||
try {
|
||||
binding = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding3 = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding3[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value10 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
acceptCreatorMonetizationTerms = value10.acceptCreatorMonetizationTerms;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value11 = Reflect.apply(acceptCreatorMonetizationTerms, value10, [require, importDefault]);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
yield value11;
|
||||
try {
|
||||
try {
|
||||
value12 = undefined;
|
||||
value13 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
reducibleJoin33: while (true) {
|
||||
if (value13) {
|
||||
env1_4(false);
|
||||
return value12;
|
||||
}
|
||||
break reducibleJoin33;
|
||||
}
|
||||
} else {
|
||||
value4 = environment.__proto__.__proto__;
|
||||
try {
|
||||
try {
|
||||
binding = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
acceptCreatorMonetizationTermsV2 = value5.acceptCreatorMonetizationTermsV2;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value6 = Reflect.apply(acceptCreatorMonetizationTermsV2, value5, [require]);
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding35;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding51;
|
||||
}
|
||||
reducibleJoin33: while (true) {
|
||||
if (value8) {
|
||||
env1_4(false);
|
||||
return value7;
|
||||
}
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
env1_4(false);
|
||||
break reducibleJoin50;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
env1_4(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
+830
@@ -0,0 +1,830 @@
|
||||
/* Metro module 16049; source: modules/creator_monetization_eligibility/useCreatorMonetizationEligibility.tsx; dependencies: [5, 57, 31, 16019, 16022, 4132, 2] */
|
||||
function _fun123961(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16257:6, offset: 0x025a2b85, size: 175 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(16019) /* metro dependency 16019: CreatorMonetizationEligibilityConstants */).CreatorMonetizationApplicationState;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/useCreatorMonetizationEligibility.tsx');
|
||||
exports.default = useCreatorMonetizationEligibility;
|
||||
}
|
||||
|
||||
function useCreatorMonetizationEligibility(a0) { // fn#123962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16257:297, offset: 0x025a2c34, size: 201 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [a0 != null]);
|
||||
const binding2 = env0_4;
|
||||
let value = binding2(value2, 2);
|
||||
const property = value[0];
|
||||
const env0_1 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, []), 2);
|
||||
const property2 = value[0];
|
||||
const env0_2 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, []), 2);
|
||||
const property3 = value[0];
|
||||
const env0_3 = value[1];
|
||||
let useCallback = binding.useCallback;
|
||||
value = _fun123963();
|
||||
value = Reflect.apply(useCallback, binding, [value, []]);
|
||||
useCallback = binding.useCallback;
|
||||
return {error: property2, loading: property, eligibility: property3, refresh: Reflect.apply(useCallback, binding,
|
||||
[_fun123967, [a0, value]])};
|
||||
}
|
||||
|
||||
function _fun123963() { // fn#123963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16257:484, offset: 0x025a2cfd, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun123965);
|
||||
return _fun123966;
|
||||
}
|
||||
|
||||
function _fun123967() { // fn#123967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16257:1632, offset: 0x025a2f9b, size: 32 bytes, params: 1, frame: 11
|
||||
if (env0_0 != null) {
|
||||
env0_4(env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun123965(a0) { // fn#123965, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16257:504, offset: 0x025a2d2c, size: 623 bytes, params: 2, frame: 24
|
||||
var state;
|
||||
var guild_size;
|
||||
var communicators;
|
||||
var perc_ret_w1;
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var getCreatorMonetizationEligibility;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var object2;
|
||||
var sufficient;
|
||||
var size;
|
||||
var mfa;
|
||||
var age;
|
||||
var owner_age;
|
||||
var safe_environment;
|
||||
var engagement_healthy;
|
||||
var retention_healthy;
|
||||
var Object;
|
||||
var keys;
|
||||
var nsfw_properties;
|
||||
var value9;
|
||||
var length;
|
||||
var can_apply;
|
||||
var latest_request;
|
||||
var value10;
|
||||
var binding3;
|
||||
var OPEN;
|
||||
var value11;
|
||||
var binding4;
|
||||
var ACTION_REQUIRED;
|
||||
var minimum_age_in_days;
|
||||
var minimum_owner_age_in_years;
|
||||
var minimum_size;
|
||||
var rejection;
|
||||
var health_score;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var error;
|
||||
var binding5;
|
||||
var value15;
|
||||
var prototype;
|
||||
var value17;
|
||||
var value18;
|
||||
exceptionLanding109: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = undefined;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
importAll(true);
|
||||
dependencyMap(value);
|
||||
value4 = environment.__proto__.__proto__.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort108: while (true) {
|
||||
exceptionLanding94: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
binding5 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
property = binding5[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
value15 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
prototype = value15.prototype;
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
value17 = new value15();
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
value18 = value17 instanceof Object ? value17 : undefined;
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
dependencyMap(value18);
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
break reduciblePort108;
|
||||
}
|
||||
importAll(false);
|
||||
return value;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
getCreatorMonetizationEligibility = value5.getCreatorMonetizationEligibility;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value6 = Reflect.apply(getCreatorMonetizationEligibility, value5, [a0]);
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
if (value8) {
|
||||
importAll(false);
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
sufficient = value7.sufficient;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.isEligibleForMonetization = sufficient;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
size = value7.size;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.hasSufficientMembers = size;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
mfa = value7.mfa;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.hasEnabled2FA = mfa;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
age = value7.age;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.meetsServerAgeRequirement = age;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
owner_age = value7.owner_age;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.meetsOwnerAgeRequirement = owner_age;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
safe_environment = value7.safe_environment;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.noRecentViolations = safe_environment;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
engagement_healthy = value7.engagement_healthy;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.weeklyCommunicators = engagement_healthy;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
retention_healthy = value7.retention_healthy;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.hasMemberRetention = retention_healthy;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
Object = global.Object;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
keys = Object.keys;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
nsfw_properties = value7.nsfw_properties;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value9 = Reflect.apply(keys, Object, [nsfw_properties]);
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
length = value9.length;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.notNSFW = length === 0;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
can_apply = value7.can_apply;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.canApply = can_apply;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
latest_request = value7.latest_request;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value10 = latest_request == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
reducibleJoin47: while (true) {
|
||||
if (value10) {
|
||||
state = value;
|
||||
break reducibleJoin47;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
state = latest_request.state;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
break reducibleJoin47;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding3 = env3_6;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
OPEN = binding3.OPEN;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.isApplicationPending = state === OPEN;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
latest_request = value7.latest_request;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value11 = latest_request == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
reducibleJoin57: while (true) {
|
||||
if (value11) {
|
||||
state = value;
|
||||
break reducibleJoin57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
state = latest_request.state;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
break reducibleJoin57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding4 = env3_6;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
ACTION_REQUIRED = binding4.ACTION_REQUIRED;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.actionRequired = state === ACTION_REQUIRED;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
minimum_age_in_days = value7.minimum_age_in_days;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.minimumAgeInDays = minimum_age_in_days;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
minimum_owner_age_in_years = value7.minimum_owner_age_in_years;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.minimumOwnerAgeInYears = minimum_owner_age_in_years;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
minimum_size = value7.minimum_size;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.minimumSize = minimum_size;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
latest_request = value7.latest_request;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.latestRequest = latest_request;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
rejection = value7.rejection;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.rejection = rejection;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
health_score = value7.health_score;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value12 = health_score == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
reducibleJoin77: while (true) {
|
||||
if (value12) {
|
||||
guild_size = value;
|
||||
break reducibleJoin77;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
guild_size = health_score.guild_size;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
break reducibleJoin77;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.guildMemberCount = guild_size;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
health_score = value7.health_score;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value13 = health_score == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
reducibleJoin84: while (true) {
|
||||
if (value13) {
|
||||
communicators = value;
|
||||
break reducibleJoin84;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
communicators = health_score.communicators;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
break reducibleJoin84;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.communicatorCount = communicators;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
health_score = value7.health_score;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value14 = health_score == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
reducibleJoin90: while (true) {
|
||||
if (value14) {
|
||||
perc_ret_w1 = value;
|
||||
break reducibleJoin90;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
perc_ret_w1 = health_score.perc_ret_w1;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
break reducibleJoin90;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.retentionScore = perc_ret_w1;
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding(object2);
|
||||
} catch (error) {
|
||||
break exceptionLanding94;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding109;
|
||||
}
|
||||
importAll(false);
|
||||
return value;
|
||||
}
|
||||
importAll(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/* Metro module 6841; source: modules/creator_monetization_eligibility/useIsCreatorMonetizationEnabledGuild.tsx; dependencies: [1867, 661, 566, 2] */
|
||||
function _fun53858(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7019:6, offset: 0x01357d44, size: 149 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const closure = isCreatorMonetizationEnabledGuild;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/useIsCreatorMonetizationEnabledGuild.tsx');
|
||||
exports.default = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([GuildStore], _fun53861);
|
||||
};
|
||||
exports.isCreatorMonetizationEnabledGuild = closure;
|
||||
}
|
||||
|
||||
function isCreatorMonetizationEnabledGuild(a0) { // fn#53859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7019:130, offset: 0x01357dd9, size: 98 bytes, params: 2, frame: 14
|
||||
const features = a0.features;
|
||||
const has = features.has;
|
||||
const CREATOR_MONETIZABLE_DISABLED = GuildFeatures.CREATOR_MONETIZABLE_DISABLED;
|
||||
return !Reflect.apply(has, features,
|
||||
[CREATOR_MONETIZABLE_DISABLED]) && (a0.features.has(GuildFeatures.CREATOR_MONETIZABLE) || a0.features.has(GuildFeatures.CREATOR_MONETIZABLE_PROVISIONAL));
|
||||
}
|
||||
|
||||
function useIsCreatorMonetizationEnabledGuild(a0) { // fn#53860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7019:447, offset: 0x01357e3b, size: 64 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun53861);
|
||||
}
|
||||
|
||||
function _fun53861() { // fn#53861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7019:535, offset: 0x01357e7b, size: 47 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const guild = GuildStore.getGuild(env0_0);
|
||||
return guild != null && isCreatorMonetizationEnabledGuild(guild);
|
||||
}
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
/* Metro module 16050; source: modules/creator_monetization_eligibility/useIsCreatorMonetizationRequestRejected.tsx; dependencies: [16019, 1244, 2] */
|
||||
function _fun123968(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16258:6, offset: 0x025a2fbb, size: 117 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(16019) /* metro dependency 16019: CreatorMonetizationEligibilityConstants */).CreatorMonetizationApplicationState;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/creator_monetization_eligibility/useIsCreatorMonetizationRequestRejected.tsx');
|
||||
exports.default = function(a0) {
|
||||
var object = {};
|
||||
var value = undefined;
|
||||
object.isApplicationRejected = (a0 == null || a0.latestRequest == null ? value : a0.latestRequest.state) === CreatorMonetizationApplicationState.REJECTED;
|
||||
object.requestCooldownDuration = _fun123970(a0 == null || a0.rejection == null ? value : a0.rejection.can_reapply_at);
|
||||
return object;
|
||||
};
|
||||
}
|
||||
|
||||
function useIsCreatorMonetizationRequestRejected(a0) { // fn#123969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16258:270, offset: 0x025a3030, size: 113 bytes, params: 2, frame: 15
|
||||
const object2 = {};
|
||||
const value = undefined;
|
||||
const state = a0 == null || a0.latestRequest == null ? value : a0.latestRequest.state;
|
||||
const REJECTED = CreatorMonetizationApplicationState.REJECTED;
|
||||
object2.isApplicationRejected = state === REJECTED;
|
||||
object2.requestCooldownDuration = getRequestCooldown(a0 == null || a0.rejection == null ? value : a0.rejection.can_reapply_at);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getRequestCooldown(a0) { // fn#123970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16258:448, owner: useIsCreatorMonetizationRequestRejected.getRequestCooldown, offset: 0x025a30a1, size: 525 bytes, params: 2, frame: 21
|
||||
var environment;
|
||||
var r0;
|
||||
var value3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (a0 == null) {
|
||||
return undefined;
|
||||
}
|
||||
let Date = global.Date;
|
||||
let value = Date.parse(a0);
|
||||
Date = global.Date;
|
||||
const value2 = Date.now();
|
||||
if (global.isNaN(value)) {
|
||||
return undefined;
|
||||
}
|
||||
if (value < value2) {
|
||||
return undefined;
|
||||
}
|
||||
const Math = global.Math;
|
||||
value = Math.round((value - value2) / 60000);
|
||||
const closure = roundByInterval;
|
||||
if (value >= 43200) {
|
||||
value = environment.__proto__;
|
||||
value = intl.formatToPlainString(t.kridzK, {months: closure(43200)});
|
||||
r0 = value;
|
||||
} else if (value >= 10080) {
|
||||
value = environment.__proto__;
|
||||
value = intl.formatToPlainString(t.EmoBD2, {weeks: closure(10080)});
|
||||
r0 = value;
|
||||
} else if (value >= 1440) {
|
||||
value = environment.__proto__;
|
||||
value = intl.formatToPlainString(t['k2UNz+'], {days: closure(1440)});
|
||||
r0 = value;
|
||||
} else if (value >= 60) {
|
||||
value = environment.__proto__;
|
||||
value = intl.formatToPlainString(t.xCjYxK, {hours: closure(60)});
|
||||
r0 = value;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
value = intl.formatToPlainString(t.iXLF9W, {minutes: value});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function roundByInterval(a0) { // fn#123971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16258:589, owner: useIsCreatorMonetizationRequestRejected.getRequestCooldown.roundByInterval, offset: 0x025a32ae, size: 34 bytes, params: 2, frame: 12
|
||||
const Math = global.Math;
|
||||
return Math.round(env0_0 / a0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user