774 lines
26 KiB
TypeScript
774 lines
26 KiB
TypeScript
/* Metro module 13043; source: modules/premium_apps/ApplicationSubscriptionsActionCreators.tsx; dependencies: [5, 661, 694, 9474, 6847, 2] */
|
|
function _fun99585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:6, offset: 0x021ce618, size: 288 bytes, params: 8, frame: 20
|
|
const _arrayLikeToArray_99588 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const transformSubscriptionListingToStoreListing = function(a0) {
|
|
var object = {id: a0.id};
|
|
object.sku = transformSubscriptionListingToSku(a0);
|
|
object.summary = a0.description;
|
|
object.description = a0.description;
|
|
object.benefits = a0.store_listing_benefits ?? [];
|
|
object.thumbnail = a0.image_asset;
|
|
object.published = a0.published;
|
|
return object;
|
|
};
|
|
const closure = function() {
|
|
return _fetchSubscriptionListingForPlan_99599.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_4 = constantsModule.SKUProductLines;
|
|
const env0_5 = constantsModule.SKUTypes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium_apps/ApplicationSubscriptionsActionCreators.tsx');
|
|
exports.fetchAllSubscriptionListingsDataForApplication = function() {
|
|
return _fetchAllSubscriptionListingsDataForApplication.apply(this, arguments);
|
|
};
|
|
exports.fetchEntitlementsForGuild = function() {
|
|
return _fetchEntitlementsForGuild.apply(this, arguments);
|
|
};
|
|
exports.dismissApplicationSubscriptionExpirationNotice = dismissApplicationSubscriptionExpirationNotice;
|
|
exports.fetchSubscriptionListingForPlan = closure;
|
|
}
|
|
|
|
function _createForOfIteratorHelperLoose_99586(a0, a1) { // fn#99586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:154, offset: 0x021ce738, size: 372 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun99587;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_99588(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_99588(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_99588(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun99587;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
}
|
|
|
|
function transformSubscriptionListingToSku({id, application_id, name, description, sku_flags, soft_deleted}) { // fn#99589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:1064, offset: 0x021ce8ac, size: 149 bytes, params: 2, frame: 4
|
|
const SUBSCRIPTION = SKUTypes.SUBSCRIPTION;
|
|
const APPLICATION = SKUProductLines.APPLICATION;
|
|
return {id: id, type: SUBSCRIPTION, application_id: application_id, product_line: APPLICATION, name: name,
|
|
summary: '', description: description, flags: sku_flags, manifests: [], available_regions: [], legal_notice: '',
|
|
deleted: soft_deleted, price_tier: 0, show_age_gate: false, restricted: false};
|
|
}
|
|
|
|
function dispatchCompat(a0) { // fn#99591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:1650, offset: 0x021ce9a4, size: 219 bytes, params: 2, frame: 19
|
|
var r2;
|
|
var value4;
|
|
var defaultImport3;
|
|
var id;
|
|
var subscription_plans;
|
|
var value5;
|
|
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
let dispatch = defaultImport.dispatch;
|
|
Reflect.apply(dispatch, defaultImport, [{type: 'SKUS_FETCH_SUCCESS',
|
|
skus: a0.map(transformSubscriptionListingToSku)}]);
|
|
defaultImport.dispatch({type: 'STORE_LISTINGS_FETCH_SUCCESS',
|
|
storeListings: a0.map(transformSubscriptionListingToStoreListing)});
|
|
const value2 = _createForOfIteratorHelperLoose_99586(a0);
|
|
const value3 = value2();
|
|
let done = value3.done;
|
|
if (!done) {
|
|
for (r2 = value3; true; r2 = value5) {
|
|
value4 = r2.value;
|
|
defaultImport3 = defaultImport;
|
|
dispatch = defaultImport3.dispatch;
|
|
id = value4.id;
|
|
subscription_plans = value4.subscription_plans;
|
|
Reflect.apply(dispatch, defaultImport3, [{type: 'SUBSCRIPTION_PLANS_FETCH_SUCCESS', skuId: id,
|
|
subscriptionPlans: subscription_plans}]);
|
|
value5 = value2();
|
|
done = value5.done;
|
|
if (done) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fetchAllSubscriptionListingsDataForApplication() { // fn#99592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:2077, offset: 0x021cea7f, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun99594).apply(this, arguments);
|
|
}
|
|
|
|
function _fetchEntitlementsForGuild() { // fn#99595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:2695, offset: 0x021cebcb, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun99597).apply(this, arguments);
|
|
}
|
|
|
|
function _fetchSubscriptionListingForPlan_99599() { // fn#99599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:3253, offset: 0x021cece0, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun99601).apply(this, arguments);
|
|
}
|
|
|
|
function dismissApplicationSubscriptionExpirationNotice(a0) { // fn#99605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:4396, offset: 0x021ceef5, size: 56 bytes, params: 2, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'APPLICATION_SUBSCRIPTIONS_CHANNEL_NOTICE_DISMISSED',
|
|
guildId: a0});
|
|
}
|
|
|
|
function* _fun99594(a0, a1) { // fn#99594, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:2194, offset: 0x021ceabc, size: 271 bytes, params: 3, frame: 23
|
|
var r7;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var getApplicationSubscriptionGroupListingsForApplication;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var binding3;
|
|
var value8;
|
|
var subscription_listings;
|
|
var value9;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_0;
|
|
binding(env2_2[2]).dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS', applicationId: a0,
|
|
groupListingId: a1});
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[3];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
getApplicationSubscriptionGroupListingsForApplication = value4.getApplicationSubscriptionGroupListingsForApplication;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(getApplicationSubscriptionGroupListingsForApplication, value4, [a0, a1]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
if (!value7) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[2];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatch = value8.dispatch;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.type = 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.applicationId = a0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.groupListing = value6;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value8, [object]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
subscription_listings = value6.subscription_listings;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
try {
|
|
value9 = subscription_listings != null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
if (value9) {
|
|
r7 = subscription_listings;
|
|
} else {
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
r7 = object;
|
|
}
|
|
try {
|
|
binding(r7);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
value.dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTINGS_FAILURE', applicationId: a0});
|
|
return undefined;
|
|
}
|
|
}
|
|
return value6;
|
|
}
|
|
|
|
function* _fun99597(a0) { // fn#99597, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:2770, offset: 0x021cec08, size: 216 bytes, params: 2, frame: 18
|
|
var object2;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var getEntitlementsForGuild;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var binding3;
|
|
var value8;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
var value3 = binding(env2_2[2]);
|
|
var dispatch = value3.dispatch;
|
|
Reflect.apply(dispatch, value3, [{type: 'APPLICATION_SUBSCRIPTIONS_FETCH_ENTITLEMENTS', guildId: a0}]);
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort27: while (true) {
|
|
exceptionLanding26: while (true) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
binding = env2_0;
|
|
value = binding(env2_2[2]);
|
|
dispatch = value.dispatch;
|
|
Reflect.apply(dispatch, value, [{type: 'APPLICATION_SUBSCRIPTIONS_FETCH_ENTITLEMENTS_FAILURE',
|
|
guildId: a0}]);
|
|
break reduciblePort27;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
property = binding2[3];
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
getEntitlementsForGuild = value4.getEntitlementsForGuild;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(getEntitlementsForGuild, value4, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
property = binding3[2];
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
dispatch = value8.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
object2.type = 'APPLICATION_SUBSCRIPTIONS_FETCH_ENTITLEMENTS_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
object2.guildId = a0;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
object2.entitlements = value6;
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value8, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding26;
|
|
}
|
|
}
|
|
}
|
|
|
|
async function _fun99601(a0) { // fn#99601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:3340, offset: 0x021ced26, size: 377 bytes, params: 2, frame: 24
|
|
var environment;
|
|
var r1;
|
|
var r13;
|
|
var binding2;
|
|
var property;
|
|
var value6;
|
|
var getSubscriptionGroupForSubscriptionPlan;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var binding3;
|
|
var value10;
|
|
var subscription_listings;
|
|
var value11;
|
|
var Promise;
|
|
var all;
|
|
var map;
|
|
var closure;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var error;
|
|
var status;
|
|
var value16;
|
|
let value = a1;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
reducibleJoin3: while (true) {
|
|
if (value !== undefined) {
|
|
r1 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
value = 0;
|
|
r1 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
binding(env2_2[2]).dispatch({type: 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTING_FOR_PLAN', planId: a0});
|
|
reducibleJoin7: while (true) {
|
|
reduciblePort53: while (true) {
|
|
exceptionLanding47: while (true) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
reducibleJoin53: while (true) {
|
|
reducibleJoin50: while (true) {
|
|
if ('status' in error) {
|
|
status = error.status;
|
|
if (status !== 429) {
|
|
break reducibleJoin50;
|
|
}
|
|
if (r1 < 10) {
|
|
binding = env2_13;
|
|
await binding(a0, typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1);
|
|
value = undefined;
|
|
value16 = false;
|
|
if (value16) {
|
|
return value;
|
|
}
|
|
break reducibleJoin53;
|
|
}
|
|
break reducibleJoin50;
|
|
}
|
|
break reducibleJoin50;
|
|
}
|
|
throw error;
|
|
}
|
|
break reduciblePort53;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
property = binding2[3];
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value6 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
getSubscriptionGroupForSubscriptionPlan = value6.getSubscriptionGroupForSubscriptionPlan;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(getSubscriptionGroupForSubscriptionPlan, value6, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
await value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
property = binding3[2];
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
object.type = 'APPLICATION_SUBSCRIPTIONS_FETCH_LISTING_FOR_PLAN_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
object.groupListing = value8;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value10, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
subscription_listings = value8.subscription_listings;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value11 = subscription_listings != null;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
if (value11) {
|
|
r13 = subscription_listings;
|
|
} else {
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
r13 = object;
|
|
}
|
|
try {
|
|
Promise = global.Promise;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
all = Promise.all;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
map = r13.map;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
closure = _fun99602;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(map, r13, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(all, Promise, [value12]);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
await value13;
|
|
try {
|
|
value14 = undefined;
|
|
value15 = false;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
if (value15) {
|
|
return value14;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
binding(r13);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun99602(a0) { // fn#99602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13233:3681, offset: 0x021cee9f, size: 86 bytes, params: 2, frame: 16
|
|
const id = a0.subscription_plans[0].id;
|
|
var value;
|
|
if (id === env0_0) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_1(env3_2[4]);
|
|
return value.fetchSubscriptionPlansForSKU(a0.id, undefined, undefined, true);
|
|
}
|
|
}
|
|
|