13106 lines
628 KiB
TypeScript
13106 lines
628 KiB
TypeScript
/* Metro module 7037; source: actions/native/BillingActionCreators.tsx; dependencies: [29, 5, 31, 5142, 7038, 7039, 1878, 3808, 5140, 661, 482, 33, 3, 1225, 587, 683, 507, 3817, 4223, 6847, 7336, 694, 7355, 22, 5143, 7035, 7360, 1244, 7294, 4496, 7301, 1962, 5080, 7028, 7362, 4131, 3824, 5046, 480, 7498, 7499, 1392, 7295, 7500, 491, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import ObjectWithoutProperties from '../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import SubscriptionStore from '../../stores/billing/SubscriptionStore.tsx'; /* Metro dependency 3808 */
|
|
import IAPStoreAndroid from '../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */
|
|
import GenericIAPStore from '../../modules/billing/native/GenericIAPStore.tsx'; /* Metro dependency 5142 */
|
|
import GiftPromotionStore from '../../modules/premium/gifting/GiftPromotionStore.tsx'; /* Metro dependency 7038 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ConstantsModule from '../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
|
|
import * as HTTPUtilsModule from '../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
|
|
import * as StorageModule from '../../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as BillingUtilsModule from '../../utils/BillingUtils.tsx'; /* Metro dependency 3817 */
|
|
import * as ErrorsModule from '../../errors/index.tsx'; /* Metro dependency 4131 */
|
|
import * as ProductIdsAndroidModule from '../../modules/premium/native/ProductIds.android.tsx'; /* Metro dependency 5143 */
|
|
import * as PremiumPlanPurchasedStoreModule from '../../modules/premium/native/PremiumPlanPurchasedStore.tsx'; /* Metro dependency 7039 */
|
|
import * as Module07336Module from '../../by-id/module-07336.js'; /* Metro dependency 7336 */
|
|
import * as ErrorUtilsModule from '../../utils/ErrorUtils.tsx'; /* Metro dependency 7362 */
|
|
import * as APBRequestOperationsModule from '../../external/discord_common/js/shared/shared-constants/APBRequestOperations.tsx'; /* Metro dependency 7498 */
|
|
import * as ACRequestOperationsModule from '../../external/discord_common/js/shared/shared-constants/ACRequestOperations.tsx'; /* Metro dependency 7499 */
|
|
|
|
function _fun55751(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6, offset: 0x013b0e26, size: 922 bytes, params: 8, frame: 25
|
|
const env0_0 = require;
|
|
const _arrayLikeToArray_55754 = 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 applyAppleReceipt2 = applyAppleReceipt;
|
|
const clearAndMakeIAPRequest = function(a0, a1, a2, a3) {
|
|
return _clearAndMakeIAPRequest.apply(this, arguments);
|
|
};
|
|
const closure2 = function(a0) {
|
|
return _getIAPJWTRequestData.apply(this, arguments);
|
|
};
|
|
const closure3 = function(a0) {
|
|
return _updateAppleSubscription.apply(this, arguments);
|
|
};
|
|
const isValidCurrency2 = isValidCurrency;
|
|
const env0_4 = ['items', 'country_code'];
|
|
const env0_5 = ['subscription_items'];
|
|
const env0_6 = ['sku_id', 'country_code', 'is_gift', 'gift_info_options'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = PremiumPlanPurchasedStoreModule;
|
|
const env0_11 = value.setPaymentSuccess;
|
|
const env0_12 = value.showOldPaymentFlowSuccess;
|
|
value = require(661) /* metro dependency 661: Constants */;
|
|
const env0_16 = value.AnalyticEvents;
|
|
const env0_17 = value.CurrencyCodes;
|
|
const env0_18 = value.Endpoints;
|
|
const StoreKitErrors = value.StoreKitErrors;
|
|
value = importDefault(3) /* metro dependency 3: Logger */;
|
|
Object.create(value.prototype, {constructor: {value: value}});
|
|
new value('BillingActionCreators.tsx');
|
|
object = {applyAppleReceipt: applyAppleReceipt2};
|
|
object.fetchMostRecentSubscription = (require(4223) /* metro dependency 4223: BillingActionCreators */).fetchMostRecentSubscription;
|
|
object.fetchIpCountryCode = (require(4223) /* metro dependency 4223: BillingActionCreators */).fetchIpCountryCode;
|
|
object.init = init_55805;
|
|
object.connectGenericIap = connectGenericIap;
|
|
object.disconnectGenericIap = disconnectGenericIap;
|
|
object.loadProducts = loadProducts;
|
|
object.createSubscription = createSubscription_55816;
|
|
object.restoreAndApplyPurchases = restoreAndApplyPurchases;
|
|
const Set = global.Set;
|
|
const ErrorCode = (Module07336Module).ErrorCode;
|
|
const E_USER_CANCELLED = ErrorCode.E_USER_CANCELLED;
|
|
const PAYMENT_CANCELED = StoreKitErrors.PAYMENT_CANCELED;
|
|
const set = new Set([E_USER_CANCELLED, PAYMENT_CANCELED]);
|
|
(FileImportTrackerModule).fileFinishedImporting('actions/native/BillingActionCreators.tsx');
|
|
exports.default = object;
|
|
exports.getIAPJWTRequestData = closure2;
|
|
exports.updateAppleSubscription = closure3;
|
|
exports.cancelGenericSubscription = function(a0, a1, a2) {
|
|
return _cancelGenericSubscription.apply(this, arguments);
|
|
};
|
|
exports.isValidCurrency = isValidCurrency2;
|
|
exports.createGenericSubscription = function(a0) {
|
|
return _createGenericSubscription.apply(this, arguments);
|
|
};
|
|
exports.modifyGenericSubscription = function(a0) {
|
|
return _modifyGenericSubscription.apply(this, arguments);
|
|
};
|
|
exports.resubscribeGenericSubscription = function(a0, a1) {
|
|
return _resubscribeGenericSubscription.apply(this, arguments);
|
|
};
|
|
exports.mobilePurchaseSKU = function(a0, a1) {
|
|
return _mobilePurchaseSKU.apply(this, arguments);
|
|
};
|
|
exports.migrateToACOM = function() {
|
|
return _migrateToACOM.apply(this, arguments);
|
|
};
|
|
function _createForOfIteratorHelperLoose_55752(a0, a1) { // fn#55752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:483, offset: 0x013b11c0, size: 370 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 _fun55753;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_55754(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_55754(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_55754(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun55753;
|
|
}
|
|
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 _fun55753() { // fn#55753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:1054, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
|
|
return env0_1 >= env0_0.length ? {done: true} : {done: false,
|
|
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
|
|
}
|
|
|
|
}
|
|
|
|
function applyAppleReceipt({encodedReceipt, entitlementSkuId, presentmentCurrency, presentmentAmount, appStoreRegion, giftInfoOptions, isGift, retries, jwsRepresentation, jwsRepresentations, source, skipDupCheck, orderId}) { // fn#55755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:1478, offset: 0x013b1332, size: 528 bytes, params: 2, frame: 30
|
|
var r0;
|
|
var value;
|
|
var defaultImport2;
|
|
const HTTP = (HTTPUtilsModule).HTTP;
|
|
if (jwsRepresentations != null) {
|
|
if (jwsRepresentation != null) {
|
|
throw new global.Error("Can pass either 'jwsRepresentation' or 'jwsRepresentations'. Not both");
|
|
}
|
|
}
|
|
const r9 = jwsRepresentation == null ? jwsRepresentations : [jwsRepresentation];
|
|
const value3 = (importDefault(1225) /* metro dependency 1225 */).v3(r9 == null ? encodedReceipt : r9[0]);
|
|
const Storage = (StorageModule).Storage;
|
|
if (skipDupCheck) {
|
|
if (!(isGift !== true || giftInfoOptions != null && giftInfoOptions?.gift_style != null)) {
|
|
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
defaultImport2.track(AnalyticEvents.GIFT_INFO_OPTIONS_MISSING, {source: source, sku_id: entitlementSkuId});
|
|
}
|
|
value = HTTP.post({url: Endpoints.BILLING_APPLY_APPLE_RECEIPT, body: {encoded_receipt: encodedReceipt,
|
|
entitlement_sku_id: entitlementSkuId, presentment_currency: presentmentCurrency,
|
|
presentment_amount: presentmentAmount, app_store_region: appStoreRegion, gift_info_options: giftInfoOptions,
|
|
is_gift: isGift, source: source, jws_representations: r9, order_id: orderId}, retries: retries,
|
|
oldFormErrors: true, rejectWithError: true});
|
|
value = value.then(_fun55756);
|
|
value = value.catch(_fun55757);
|
|
r0 = value;
|
|
} else if (Storage.get(env0_21) !== value3) {
|
|
if (!(isGift !== true || giftInfoOptions != null && giftInfoOptions?.gift_style != null)) {
|
|
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
defaultImport2.track(AnalyticEvents.GIFT_INFO_OPTIONS_MISSING, {source: source, sku_id: entitlementSkuId});
|
|
}
|
|
value = HTTP.post({url: Endpoints.BILLING_APPLY_APPLE_RECEIPT, body: {encoded_receipt: encodedReceipt,
|
|
entitlement_sku_id: entitlementSkuId, presentment_currency: presentmentCurrency,
|
|
presentment_amount: presentmentAmount, app_store_region: appStoreRegion, gift_info_options: giftInfoOptions,
|
|
is_gift: isGift, source: source, jws_representations: r9, order_id: orderId}, retries: retries,
|
|
oldFormErrors: true, rejectWithError: true});
|
|
value = value.then(_fun55756);
|
|
value = value.catch(_fun55757);
|
|
r0 = value;
|
|
} else {
|
|
r0 = global.Promise.resolve(null);
|
|
}
|
|
return r0;
|
|
function _fun55756(a0) { // fn#55756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:2361, offset: 0x013b1542, size: 58 bytes, params: 2, frame: 13
|
|
const Storage = (StorageModule).Storage;
|
|
Storage.set(env1_21, env0_0);
|
|
return a0;
|
|
}
|
|
|
|
function _fun55757(a0) { // fn#55757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:2404, offset: 0x013b157c, size: 59 bytes, params: 2, frame: 15
|
|
(BillingUtilsModule).captureBillingException(a0, {tags: {source: env1_22}});
|
|
throw a0;
|
|
}
|
|
|
|
}
|
|
|
|
function _getTrialOfferSignature() { // fn#55758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:2497, offset: 0x013b15b7, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55760).apply(this, arguments);
|
|
function* _fun55760(a0, a1, a2) { // fn#55760, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:2566, offset: 0x013b15f0, size: 172 bytes, params: 4, frame: 16
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var HTTP;
|
|
var post;
|
|
var object;
|
|
var BILLING_GENERATE_APPLE_TRIAL_OFFER_SIGNATURE;
|
|
var object2;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var body;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[16];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
HTTP = value3.HTTP;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_18;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
BILLING_GENERATE_APPLE_TRIAL_OFFER_SIGNATURE = binding.BILLING_GENERATE_APPLE_TRIAL_OFFER_SIGNATURE;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.url = BILLING_GENERATE_APPLE_TRIAL_OFFER_SIGNATURE;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.product_id = a0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.product_offer_id = a1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.app_account_token = a2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
body = value5.body;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
value.captureBillingException(error);
|
|
return undefined;
|
|
}
|
|
return body;
|
|
}
|
|
|
|
}
|
|
|
|
function handlePurchaseException(a0, a1) { // fn#55761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:8383, offset: 0x013b169c, size: 698 bytes, params: 3, frame: 24
|
|
var r1;
|
|
var r2;
|
|
var r8;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const BillingError = (ErrorsModule).BillingError;
|
|
var billingError;
|
|
const value = a0;
|
|
const binding = env0_23;
|
|
if (binding.has(value.code)) {
|
|
return undefined;
|
|
}
|
|
value.message;
|
|
const JSON = global.JSON;
|
|
JSON.stringify(value);
|
|
const underlyingIOSError = (ErrorUtilsModule).getUnderlyingIOSError(value);
|
|
if (underlyingIOSError != null) {
|
|
(importDefault(4496) /* metro dependency 4496: AlertActionCreators */).show({title: intl.string(t.POsVOt),
|
|
body: underlyingIOSError});
|
|
throw value;
|
|
}
|
|
const string = intl.string;
|
|
const PjfUXe = t.PjfUXe;
|
|
const value4 = Reflect.apply(string, intl, [PjfUXe]);
|
|
const r3 = value.body == null || value.body.apple_error_code == null ? value.name === 'HTTPResponseError' || 'status' in value && 'method' in value ? value4 : value.message || value4 : '' + value4 + ' (code: ' + value.body.apple_error_code + ')';
|
|
if (r3 !== value4) {
|
|
r8 = r3;
|
|
} else {
|
|
if (value instanceof BillingError) {
|
|
r1 = value;
|
|
} else {
|
|
billingError = new BillingError(value);
|
|
}
|
|
r2 = r1.code !== (require(3824) /* metro dependency 3824: BillingError */).ErrorCodes.UNKNOWN && r1.code !== -1;
|
|
r2 = r2 && r1.message != null;
|
|
r8 = r2 ? r1.message : r3;
|
|
}
|
|
(importDefault(4496) /* metro dependency 4496: AlertActionCreators */).show({title: intl.string(t.zrhHH3), body: r8,
|
|
isDismissable: true});
|
|
(BillingUtilsModule).captureBillingException(value, {tags: {source: env0_22,
|
|
purchase_type: a1}});
|
|
throw value;
|
|
}
|
|
|
|
function canMakeIAPRequest() { // fn#55762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:9156, offset: 0x013b1956, size: 92 bytes, params: 1, frame: 14
|
|
var r1;
|
|
var r0;
|
|
var isPaymentsBlocked;
|
|
const isBusy2 = IAPStoreAndroid.isBusy();
|
|
if (isBusy2) {
|
|
r0 = !isBusy2;
|
|
} else {
|
|
isPaymentsBlocked = (require(7035) /* metro dependency 7035: BlockedPaymentsCountryExperiment */).getIsPaymentsBlocked();
|
|
if (isPaymentsBlocked) {
|
|
(importDefault(7360) /* metro dependency 7360: openBlockedPaymentsCountryActionSheet */)();
|
|
r1 = false;
|
|
} else {
|
|
r1 = !isPaymentsBlocked;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _clearAndMakeIAPRequest() { // fn#55764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:9351, offset: 0x013b19b2, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55766).apply(this, arguments);
|
|
function* _fun55766(a0, a1, a2, a3) { // fn#55766, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:9420, offset: 0x013b19eb, size: 660 bytes, params: 5, frame: 32
|
|
var r15;
|
|
var r7;
|
|
var r3;
|
|
var r6;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value6;
|
|
var clearTransactionIOS;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var binding3;
|
|
var value10;
|
|
var makeIAPRequest;
|
|
var iAPRequest;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var purchaseResponse;
|
|
var transactionIdentifier;
|
|
var toString;
|
|
var value14;
|
|
var transactionDate;
|
|
var object;
|
|
var originalTransactionIdentifier;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var originalTransactionDate;
|
|
var value18;
|
|
var track;
|
|
var APPLE_PARTNER_IAP_REQUEST_SENT;
|
|
var object2;
|
|
var error;
|
|
var code;
|
|
var value19;
|
|
var value20;
|
|
var binding4;
|
|
var value21;
|
|
var getUnderlyingIOSError;
|
|
var value22;
|
|
exceptionSkip80: while (true) {
|
|
exceptionLanding80: while (true) {
|
|
exceptionSkip58: while (true) {
|
|
exceptionLanding58: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = undefined;
|
|
value3 = false;
|
|
value4 = null;
|
|
value5 = environment.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[20];
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
value6 = binding(property);
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
clearTransactionIOS = value6.clearTransactionIOS;
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
value7 = Reflect.apply(clearTransactionIOS, value6, []);
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
yield value7;
|
|
try {
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
if (value9) {
|
|
value = env2_1(env2_3[15]);
|
|
track = value.track;
|
|
APPLE_PARTNER_IAP_REQUEST_SENT = env2_16.APPLE_PARTNER_IAP_REQUEST_SENT;
|
|
object = {request_identifier: a0, success: value3};
|
|
copyDataProperties(object, value4, undefined);
|
|
Reflect.apply(track, value, [APPLE_PARTNER_IAP_REQUEST_SENT, object]);
|
|
return value8;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding3[22];
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
makeIAPRequest = value10.makeIAPRequest;
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
iAPRequest = Reflect.apply(makeIAPRequest, value10, [a1, a2, a3]);
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
yield iAPRequest;
|
|
try {
|
|
try {
|
|
value11 = undefined;
|
|
value12 = false;
|
|
} catch (error) {
|
|
r7 = value3;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value3;
|
|
break exceptionLanding80;
|
|
}
|
|
if (value12) {
|
|
value = env2_1(env2_3[15]);
|
|
track = value.track;
|
|
APPLE_PARTNER_IAP_REQUEST_SENT = env2_16.APPLE_PARTNER_IAP_REQUEST_SENT;
|
|
object = {request_identifier: a0, success: value3};
|
|
copyDataProperties(object, value4, undefined);
|
|
Reflect.apply(track, value, [APPLE_PARTNER_IAP_REQUEST_SENT, object]);
|
|
return value11;
|
|
}
|
|
value13 = true;
|
|
try {
|
|
try {
|
|
purchaseResponse = value11.purchaseResponse;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
toString = transactionIdentifier.toString;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
value14 = Reflect.apply(toString, transactionIdentifier, []);
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
purchaseResponse = value11.purchaseResponse;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
transactionDate = purchaseResponse.transactionDate;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
purchaseResponse = value11.purchaseResponse;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
originalTransactionIdentifier = purchaseResponse.originalTransactionIdentifier;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
value15 = value4 == originalTransactionIdentifier;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
if (value15) {
|
|
r15 = value;
|
|
} else {
|
|
try {
|
|
try {
|
|
toString = originalTransactionIdentifier.toString;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
value16 = Reflect.apply(toString, originalTransactionIdentifier, []);
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
r15 = value16;
|
|
}
|
|
try {
|
|
try {
|
|
value17 = value4 != r15;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
if (!value17) {
|
|
r15 = value14;
|
|
}
|
|
try {
|
|
try {
|
|
object.original_transaction_id = r15;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
purchaseResponse = value11.purchaseResponse;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
originalTransactionDate = purchaseResponse.originalTransactionDate;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
value18 = value4 != originalTransactionDate;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
r15 = value18 ? originalTransactionDate : transactionDate;
|
|
try {
|
|
try {
|
|
object.original_transaction_date = r15;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
object.transaction_id = value14;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
try {
|
|
object.transaction_date = transactionDate;
|
|
} catch (error) {
|
|
r7 = value13;
|
|
break exceptionLanding58;
|
|
}
|
|
} catch (error) {
|
|
r6 = value4;
|
|
r7 = value13;
|
|
break exceptionLanding80;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[15]);
|
|
track = value.track;
|
|
APPLE_PARTNER_IAP_REQUEST_SENT = env2_16.APPLE_PARTNER_IAP_REQUEST_SENT;
|
|
object2 = {request_identifier: a0, success: value13};
|
|
copyDataProperties(object2, object, undefined);
|
|
Reflect.apply(track, value, [APPLE_PARTNER_IAP_REQUEST_SENT, object2]);
|
|
return value11;
|
|
break exceptionSkip58;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
code = error.code;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
value19 = value4 == code;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
if (value19) {
|
|
r3 = value;
|
|
try {
|
|
object.error_code = r3;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
binding = env2_2;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
binding4 = env2_3;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
property = binding4[34];
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
value21 = binding(property);
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
getUnderlyingIOSError = value21.getUnderlyingIOSError;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
value22 = Reflect.apply(getUnderlyingIOSError, value21, [error]);
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
object.error_message = value22;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
r6 = object;
|
|
break exceptionLanding80;
|
|
}
|
|
} else {
|
|
try {
|
|
toString = code.toString;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
value20 = Reflect.apply(toString, code, []);
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
r3 = value20;
|
|
try {
|
|
object.error_code = r3;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
binding = env2_2;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
binding4 = env2_3;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
property = binding4[34];
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
value21 = binding(property);
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
getUnderlyingIOSError = value21.getUnderlyingIOSError;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
value22 = Reflect.apply(getUnderlyingIOSError, value21, [error]);
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
object.error_message = value22;
|
|
} catch (error) {
|
|
r6 = value4;
|
|
break exceptionLanding80;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
r6 = object;
|
|
break exceptionLanding80;
|
|
}
|
|
}
|
|
break exceptionSkip58;
|
|
}
|
|
break exceptionSkip80;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_3[15]);
|
|
track = value.track;
|
|
APPLE_PARTNER_IAP_REQUEST_SENT = env2_16.APPLE_PARTNER_IAP_REQUEST_SENT;
|
|
object = {request_identifier: a0, success: r7};
|
|
copyDataProperties(object, r6, undefined);
|
|
Reflect.apply(track, value, [APPLE_PARTNER_IAP_REQUEST_SENT, object]);
|
|
throw error;
|
|
break exceptionSkip80;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _getIAPJWTRequestData() { // fn#55768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:10230, offset: 0x013b1c7f, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55770).apply(this, arguments);
|
|
function* _fun55770(a0) { // fn#55770, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:10295, offset: 0x013b1cb8, size: 192 bytes, params: 2, frame: 19
|
|
var environment;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_0 = a0;
|
|
value = environment.__proto__.__proto__;
|
|
const binding = env2_1;
|
|
const binding2 = env2_3;
|
|
const value3 = binding(binding2[37]);
|
|
const post = value3.post;
|
|
const object = {};
|
|
const BILLING_CREATE_APPLE_IAP_JWT_TOKEN = env2_18.BILLING_CREATE_APPLE_IAP_JWT_TOKEN;
|
|
object.url = BILLING_CREATE_APPLE_IAP_JWT_TOKEN;
|
|
object.body = a0;
|
|
object.oldFormErrors = true;
|
|
const NetworkActionNames = env2_0(binding2[38]).NetworkActionNames;
|
|
const APPLE_JWT_TOKEN_CREATE = NetworkActionNames.APPLE_JWT_TOKEN_CREATE;
|
|
object.trackedActionData = {event: APPLE_JWT_TOKEN_CREATE, properties: properties};
|
|
object.rejectWithError = true;
|
|
yield Reflect.apply(post, value3, [object]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
const JSON = global.JSON;
|
|
return {requestJSONString: JSON.stringify(value.body.request_data)};
|
|
function properties(a0) { // fn#55771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:10488, offset: 0x013b1d78, size: 616 bytes, params: 2, frame: 20
|
|
var r10;
|
|
var r3;
|
|
var object;
|
|
var sku_id;
|
|
var country_code;
|
|
var is_gift;
|
|
var gift_info_options;
|
|
var subscription_items;
|
|
var items2;
|
|
var value;
|
|
let operation = env0_0.operation;
|
|
let binding = env3_0;
|
|
const value3 = undefined;
|
|
const APBRequestOperations = binding(env3_3[39]).APBRequestOperations;
|
|
const CREATE = APBRequestOperations.CREATE;
|
|
if (operation === CREATE) {
|
|
binding = env0_0;
|
|
items2 = binding.items;
|
|
country_code = binding.country_code;
|
|
value = env3_7(binding, env3_4);
|
|
object = {};
|
|
object.subscription_items_json_string = global.JSON.stringify(items2);
|
|
object.request_country_code = country_code;
|
|
copyDataProperties(object, value, r10);
|
|
r3 = object;
|
|
} else {
|
|
operation = env0_0.operation;
|
|
binding = env3_0;
|
|
if (operation === binding(env3_3[40]).ACRequestOperations.CREATE) {
|
|
binding = env0_0;
|
|
items2 = binding.items;
|
|
country_code = binding.country_code;
|
|
value = env3_7(binding, env3_4);
|
|
object = {};
|
|
object.subscription_items_json_string = global.JSON.stringify(items2);
|
|
object.request_country_code = country_code;
|
|
copyDataProperties(object, value, r10);
|
|
r3 = object;
|
|
} else {
|
|
operation = env0_0.operation;
|
|
binding = env3_0;
|
|
if (operation === binding(env3_3[40]).ACRequestOperations.MODIFY) {
|
|
binding = env0_0;
|
|
subscription_items = binding.subscription_items;
|
|
value = env3_7(binding, env3_5);
|
|
object = {};
|
|
object.subscription_items_json_string = global.JSON.stringify(subscription_items);
|
|
copyDataProperties(object, value, r10);
|
|
r3 = object;
|
|
} else {
|
|
operation = env0_0.operation;
|
|
binding = env3_0;
|
|
if (operation === binding(env3_3[39]).APBRequestOperations.CHARGE) {
|
|
binding = env0_0;
|
|
sku_id = binding.sku_id;
|
|
country_code = binding.country_code;
|
|
is_gift = binding.is_gift;
|
|
gift_info_options = binding.gift_info_options;
|
|
object = {sku_id: sku_id, request_country_code: country_code};
|
|
copyDataProperties(object, env3_7(binding, env3_6), binding);
|
|
if (gift_info_options != null) {
|
|
object.gift_info_options = global.JSON.stringify(gift_info_options);
|
|
}
|
|
if (is_gift) {
|
|
object.is_gift = is_gift;
|
|
r3 = object;
|
|
r10 = binding;
|
|
} else {
|
|
r3 = object;
|
|
r10 = binding;
|
|
}
|
|
} else {
|
|
operation = env0_0.operation;
|
|
binding = env3_0;
|
|
if (operation === binding(env3_3[40]).ACRequestOperations.CHARGE) {
|
|
binding = env0_0;
|
|
sku_id = binding.sku_id;
|
|
country_code = binding.country_code;
|
|
is_gift = binding.is_gift;
|
|
gift_info_options = binding.gift_info_options;
|
|
object = {sku_id: sku_id, request_country_code: country_code};
|
|
copyDataProperties(object, env3_7(binding, env3_6), binding);
|
|
if (gift_info_options != null) {
|
|
object.gift_info_options = global.JSON.stringify(gift_info_options);
|
|
}
|
|
if (is_gift) {
|
|
object.is_gift = is_gift;
|
|
r3 = object;
|
|
r10 = binding;
|
|
} else {
|
|
r3 = object;
|
|
r10 = binding;
|
|
}
|
|
} else {
|
|
object = {};
|
|
copyDataProperties(object, env0_0, r10);
|
|
r3 = object;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
value = env3_0(env3_3[41]);
|
|
const exact = value.exact;
|
|
object = {};
|
|
object.jwt_token_exists = ((a0 == null || a0.body == null ? value3 : a0.body.request_data) ?? '').length > 0;
|
|
copyDataProperties(object, r3, r10);
|
|
return Reflect.apply(exact, value, [object]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _updateAppleSubscription() { // fn#55773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:11513, offset: 0x013b1fe0, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55775).apply(this, arguments);
|
|
function* _fun55775(a0) { // fn#55775, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:11584, offset: 0x013b2019, size: 168 bytes, params: 2, frame: 20
|
|
var environment;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_1;
|
|
var binding2 = env2_3;
|
|
var value3 = binding(binding2[37]);
|
|
var patch = value3.patch;
|
|
var object = {};
|
|
object.url = env2_18.BILLING_APPLE_SUBSCRIPTION(a0.subscription_id);
|
|
object.body = a0;
|
|
object.oldFormErrors = true;
|
|
var NetworkActionNames = env2_0(binding2[38]).NetworkActionNames;
|
|
var APPLE_JWT_TOKEN_CREATE = NetworkActionNames.APPLE_JWT_TOKEN_CREATE;
|
|
object.trackedActionData = {event: APPLE_JWT_TOKEN_CREATE, properties: properties_55776};
|
|
object.rejectWithError = false;
|
|
yield Reflect.apply(patch, value3, [object]);
|
|
}
|
|
function properties_55776(a0) { // fn#55776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:11783, offset: 0x013b20c1, size: 130 bytes, params: 2, frame: 18
|
|
const object = {};
|
|
copyDataProperties(object, env0_0, undefined);
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
const binding = env3_0;
|
|
value = undefined;
|
|
const value2 = binding(env3_3[41]);
|
|
const exact = value2.exact;
|
|
const object2 = {};
|
|
object2.jwt_token_exists = ((a0 == null || a0.body == null ? value : a0.body.request_data) ?? '').length > 0;
|
|
copyDataProperties(object2, object, value);
|
|
return Reflect.apply(exact, value2, [object2]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function determineProductId(a0) { // fn#55777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:11975, offset: 0x013b2143, size: 540 bytes, params: 2, frame: 14
|
|
const ProductIds = (ProductIdsAndroidModule).ProductIds;
|
|
const APBRequestOperations = (APBRequestOperationsModule).APBRequestOperations;
|
|
let CREATE = APBRequestOperations.CREATE;
|
|
if (CREATE === a0) {
|
|
return ProductIds.GENERIC_SUBSCRIPTION;
|
|
}
|
|
let CANCEL = APBRequestOperations.CANCEL;
|
|
if (CANCEL === a0) {
|
|
return ProductIds.GENERIC_SUBSCRIPTION;
|
|
}
|
|
const RESUBSCRIBE = APBRequestOperations.RESUBSCRIBE;
|
|
if (RESUBSCRIBE === a0) {
|
|
return ProductIds.GENERIC_SUBSCRIPTION;
|
|
}
|
|
let REACTIVATE = APBRequestOperations.REACTIVATE;
|
|
if (REACTIVATE === a0) {
|
|
return ProductIds.GENERIC_SUBSCRIPTION;
|
|
}
|
|
let CHARGE = APBRequestOperations.CHARGE;
|
|
if (CHARGE === a0) {
|
|
return ProductIds.GENERIC_CONSUMABLE;
|
|
}
|
|
const ACRequestOperations = (ACRequestOperationsModule).ACRequestOperations;
|
|
CREATE = ACRequestOperations.CREATE;
|
|
if (CREATE === a0) {
|
|
return ProductIds.GENERIC_SUBSCRIPTION;
|
|
}
|
|
CANCEL = ACRequestOperations.CANCEL;
|
|
if (CANCEL === a0) {
|
|
return ProductIds.GENERIC_SUBSCRIPTION;
|
|
}
|
|
REACTIVATE = ACRequestOperations.REACTIVATE;
|
|
if (REACTIVATE === a0) {
|
|
return ProductIds.GENERIC_SUBSCRIPTION;
|
|
}
|
|
const MODIFY = ACRequestOperations.MODIFY;
|
|
if (MODIFY === a0) {
|
|
return ProductIds.GENERIC_SUBSCRIPTION;
|
|
}
|
|
CHARGE = ACRequestOperations.CHARGE;
|
|
if (CHARGE === a0) {
|
|
return ProductIds.GENERIC_CONSUMABLE;
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('Invalid operation');
|
|
}
|
|
|
|
function _cancelGenericSubscription() { // fn#55778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:12692, offset: 0x013b235f, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55780).apply(this, arguments);
|
|
function* _fun55780(a0, a1, a2) { // fn#55780, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:12767, offset: 0x013b2398, size: 359 bytes, params: 4, frame: 23
|
|
var r2;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var binding3;
|
|
var property;
|
|
var value10;
|
|
var error;
|
|
var value11;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
if (!env2_29()) {
|
|
return false;
|
|
}
|
|
let binding = env2_0;
|
|
const binding2 = env2_3;
|
|
const CANCEL = a2 ? binding(binding2[40]).ACRequestOperations.CANCEL : binding(binding2[39]).APBRequestOperations.CANCEL;
|
|
const value3 = env2_36(CANCEL);
|
|
const value4 = env2_1(env2_3[21]);
|
|
let dispatch = value4.dispatch;
|
|
yield Reflect.apply(dispatch, value4, [{type: 'IAP_PURCHASE_PRODUCT_START', productIdentifier: value3}]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_34;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
object.operation = CANCEL;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
object.request_identifier = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
object.subscription_id = a1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
value7 = binding(object);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding3[21];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
object.type = 'IAP_PURCHASE_PRODUCT_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
object.productIdentifier = value3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value10, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value11 = binding(env2_3[21]);
|
|
value11.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value3});
|
|
value = 'partner_subscription';
|
|
if (a2) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r2 = value;
|
|
env2_28(error, r2);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
function isValidCurrency(a0) { // fn#55781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:13375, offset: 0x013b24ff, size: 40 bytes, params: 2, frame: 11
|
|
const Object = global.Object;
|
|
return Object.values(CurrencyCodes).includes(a0);
|
|
}
|
|
|
|
function _createGenericSubscription() { // fn#55782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:13439, offset: 0x013b2527, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55784).apply(this, arguments);
|
|
async function _fun55784({requestIdentifier, items, currency, countryCode, orderId}) { // fn#55784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:13514, offset: 0x013b2569, size: 690 bytes, params: 2, frame: 30
|
|
var environment;
|
|
var value8;
|
|
var Error;
|
|
var concat;
|
|
var value9;
|
|
var prototype;
|
|
var error;
|
|
var value11;
|
|
var map;
|
|
var closure;
|
|
var value12;
|
|
var object;
|
|
var binding4;
|
|
var binding5;
|
|
var property;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var requestJSONString;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var purchaseResponse;
|
|
var originalPurchase;
|
|
var transactionReceipt;
|
|
var jwsRepresentation;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var binding6;
|
|
var value23;
|
|
var finishTransaction;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var binding7;
|
|
var value27;
|
|
var value28;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
if (!env2_29()) {
|
|
return false;
|
|
}
|
|
let binding = env2_36;
|
|
const binding2 = env2_0;
|
|
const binding3 = env2_3;
|
|
let ACRequestOperations = binding2(binding3[40]).ACRequestOperations;
|
|
let CREATE = ACRequestOperations.CREATE;
|
|
const value4 = binding(CREATE);
|
|
const value5 = env2_1(binding3[21]);
|
|
let dispatch = value5.dispatch;
|
|
let object2 = {type: 'IAP_PURCHASE_PRODUCT_START', productIdentifier: value4};
|
|
await Reflect.apply(dispatch, value5, [object2]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_38;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value8 = binding(currency);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
if (value8) {
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.request_identifier = requestIdentifier;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
map = items.map;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
closure = function(a0) {
|
|
return {plan_id: a0.planId, quantity: a0.quantity};
|
|
};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(map, items, [closure]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.items = value12;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.currency = currency;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.country_code = countryCode;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_32;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
binding5 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding5[40];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value13 = binding4(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
ACRequestOperations = value13.ACRequestOperations;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
CREATE = ACRequestOperations.CREATE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object.operation = CREATE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
copyDataProperties(object, object2, undefined);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value14 = binding(object);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
await value14;
|
|
try {
|
|
value15 = undefined;
|
|
value16 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
if (value16) {
|
|
return value15;
|
|
}
|
|
try {
|
|
requestJSONString = value15.requestJSONString;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_30;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value17 = binding(requestIdentifier, requestJSONString, value4, true);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
await value17;
|
|
try {
|
|
value18 = undefined;
|
|
value19 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
if (value19) {
|
|
return value18;
|
|
}
|
|
try {
|
|
purchaseResponse = value18.purchaseResponse;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
originalPurchase = value18.originalPurchase;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_26;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.encodedReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.retries = 3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.presentmentCurrency = currency;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.appStoreRegion = countryCode;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.jwsRepresentation = jwsRepresentation;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.source = 'createGenericSubscription';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.orderId = orderId;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value20 = binding(object2);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
await value20;
|
|
try {
|
|
value21 = undefined;
|
|
value22 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
if (value22) {
|
|
return value21;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
binding6 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding6[20];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value23 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
finishTransaction = value23.finishTransaction;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.purchase = originalPurchase;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value24 = Reflect.apply(finishTransaction, value23, [object2]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
await value24;
|
|
try {
|
|
value25 = undefined;
|
|
value26 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
if (value26) {
|
|
return value25;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
binding7 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding7[21];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value27 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
dispatch = value27.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.type = 'IAP_PURCHASE_PRODUCT_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
object2.productIdentifier = value4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value27, [object2]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(concat, "Unable to create subscription with invalid currency '", [currency, "' "]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
value11 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
try {
|
|
throw value11;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value28 = binding(env2_3[21]);
|
|
value28.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _modifyGenericSubscription() { // fn#55786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:14674, offset: 0x013b2838, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55788).apply(this, arguments);
|
|
async function _fun55788(a0) { // fn#55788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:14749, offset: 0x013b287a, size: 642 bytes, params: 2, frame: 30
|
|
var environment;
|
|
var r7;
|
|
var value;
|
|
var value2;
|
|
var requestIdentifier;
|
|
var subscriptionId;
|
|
var items2;
|
|
var orderId;
|
|
var onPurchaseComplete;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var binding;
|
|
var binding2;
|
|
var ProductIds;
|
|
var GENERIC_SUBSCRIPTION;
|
|
var value6;
|
|
var dispatch;
|
|
var object;
|
|
var value7;
|
|
var value8;
|
|
var binding3;
|
|
var binding4;
|
|
var property;
|
|
var value9;
|
|
var ACRequestOperations;
|
|
var MODIFY;
|
|
var map;
|
|
var closure;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var requestJSONString;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var purchaseResponse;
|
|
var originalPurchase;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var error;
|
|
var binding5;
|
|
var value21;
|
|
var captureBillingException;
|
|
var transactionReceipt;
|
|
var jwsRepresentation;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var binding6;
|
|
var value25;
|
|
var finishTransaction;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var binding7;
|
|
var value29;
|
|
exceptionLanding99: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
requestIdentifier = a0.requestIdentifier;
|
|
subscriptionId = a0.subscriptionId;
|
|
items2 = a0.items;
|
|
orderId = a0.orderId;
|
|
onPurchaseComplete = a0.onPurchaseComplete;
|
|
value = undefined;
|
|
await value;
|
|
value3 = undefined;
|
|
value4 = false;
|
|
if (value4) {
|
|
return value3;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
if (env2_29()) {
|
|
binding = env2_0;
|
|
binding2 = env2_3;
|
|
ProductIds = binding(binding2[24]).ProductIds;
|
|
GENERIC_SUBSCRIPTION = ProductIds.GENERIC_SUBSCRIPTION;
|
|
binding = env2_1;
|
|
value6 = binding(binding2[21]);
|
|
dispatch = value6.dispatch;
|
|
await Reflect.apply(dispatch, value6, [{type: 'IAP_PURCHASE_PRODUCT_START',
|
|
productIdentifier: GENERIC_SUBSCRIPTION}]);
|
|
value7 = undefined;
|
|
value8 = false;
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
binding = env2_32;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
binding3 = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
binding4 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
property = binding4[40];
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value9 = binding3(property);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
ACRequestOperations = value9.ACRequestOperations;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
MODIFY = ACRequestOperations.MODIFY;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.operation = MODIFY;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.request_identifier = requestIdentifier;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.subscription_id = subscriptionId;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
map = items2.map;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
closure = function(a0) {
|
|
return {plan_id: a0.planId, quantity: a0.quantity};
|
|
};
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(map, items2, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.subscription_items = value10;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value11 = binding(object);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
await value11;
|
|
try {
|
|
value12 = undefined;
|
|
value13 = false;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
if (value13) {
|
|
return value12;
|
|
}
|
|
try {
|
|
requestJSONString = value12.requestJSONString;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
binding = env2_30;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value14 = binding(requestIdentifier, requestJSONString, GENERIC_SUBSCRIPTION, true);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
await value14;
|
|
try {
|
|
value15 = undefined;
|
|
value16 = false;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
if (value16) {
|
|
return value15;
|
|
}
|
|
try {
|
|
purchaseResponse = value15.purchaseResponse;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
originalPurchase = value15.originalPurchase;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
reducibleJoin41: while (true) {
|
|
reduciblePort56: while (true) {
|
|
exceptionLanding48: while (true) {
|
|
try {
|
|
try {
|
|
value17 = onPurchaseComplete == null;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
break reducibleJoin41;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
binding5 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
property = binding5[17];
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value21 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
captureBillingException = value21.captureBillingException;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
Reflect.apply(captureBillingException, value21, [error]);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
break reduciblePort56;
|
|
}
|
|
try {
|
|
binding = env2_26;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.encodedReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.retries = 3;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.jwsRepresentation = jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.source = 'modifyGenericSubscription';
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.orderId = orderId;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value22 = binding(object);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
await value22;
|
|
try {
|
|
value23 = undefined;
|
|
value24 = false;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
if (value24) {
|
|
return value23;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
binding6 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
property = binding6[20];
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value25 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
finishTransaction = value25.finishTransaction;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.purchase = originalPurchase;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value26 = Reflect.apply(finishTransaction, value25, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
await value26;
|
|
try {
|
|
value27 = undefined;
|
|
value28 = false;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
if (value28) {
|
|
return value27;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
binding7 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
property = binding7[21];
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value29 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
dispatch = value29.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.type = 'IAP_PURCHASE_PRODUCT_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.productIdentifier = GENERIC_SUBSCRIPTION;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value29, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
return true;
|
|
}
|
|
reducibleJoin43: while (true) {
|
|
if (value17) {
|
|
r7 = value;
|
|
break reducibleJoin43;
|
|
}
|
|
try {
|
|
try {
|
|
value18 = onPurchaseComplete();
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
r7 = value18;
|
|
break reducibleJoin43;
|
|
}
|
|
await r7;
|
|
try {
|
|
try {
|
|
value19 = undefined;
|
|
value20 = false;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
if (value20) {
|
|
return value19;
|
|
}
|
|
try {
|
|
binding = env2_26;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.encodedReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.retries = 3;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.jwsRepresentation = jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.source = 'modifyGenericSubscription';
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.orderId = orderId;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value22 = binding(object);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
await value22;
|
|
try {
|
|
value23 = undefined;
|
|
value24 = false;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
if (value24) {
|
|
return value23;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
binding6 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
property = binding6[20];
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value25 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
finishTransaction = value25.finishTransaction;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.purchase = originalPurchase;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value26 = Reflect.apply(finishTransaction, value25, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
await value26;
|
|
try {
|
|
value27 = undefined;
|
|
value28 = false;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
if (value28) {
|
|
return value27;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
binding7 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
property = binding7[21];
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
value29 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
dispatch = value29.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.type = 'IAP_PURCHASE_PRODUCT_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
object.productIdentifier = GENERIC_SUBSCRIPTION;
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value29, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding99;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
const value30 = env2_1(env2_3[21]);
|
|
value30.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: GENERIC_SUBSCRIPTION});
|
|
env2_28(error, 'advanced_commerce');
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
function _resubscribeGenericSubscription() { // fn#55790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:15837, offset: 0x013b2afc, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55792).apply(this, arguments);
|
|
async function _fun55792({requestIdentifier, subscriptionId}, a1) { // fn#55792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:15922, offset: 0x013b2b3e, size: 683 bytes, params: 3, frame: 27
|
|
var REACTIVATE;
|
|
var r3;
|
|
var APBRequestOperations;
|
|
var ACRequestOperations;
|
|
var object;
|
|
var binding4;
|
|
var binding5;
|
|
var property;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var object3;
|
|
var binding6;
|
|
var binding7;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var requestJSONString;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var purchaseResponse;
|
|
var originalPurchase;
|
|
var transactionReceipt;
|
|
var jwsRepresentation;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var binding8;
|
|
var value22;
|
|
var finishTransaction;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var binding9;
|
|
var value26;
|
|
var error;
|
|
var value27;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
if (!env2_29()) {
|
|
return false;
|
|
}
|
|
let object4 = {request_identifier: requestIdentifier, subscription_id: subscriptionId};
|
|
let binding = env2_36;
|
|
const binding2 = env2_0;
|
|
const binding3 = env2_3;
|
|
if (a1) {
|
|
ACRequestOperations = binding2(binding3[40]).ACRequestOperations;
|
|
REACTIVATE = ACRequestOperations.REACTIVATE;
|
|
} else {
|
|
APBRequestOperations = binding2(binding3[39]).APBRequestOperations;
|
|
REACTIVATE = APBRequestOperations.REACTIVATE;
|
|
}
|
|
const value4 = binding(REACTIVATE);
|
|
const value5 = env2_1(env2_3[21]);
|
|
let dispatch = value5.dispatch;
|
|
await Reflect.apply(dispatch, value5, [{type: 'IAP_PURCHASE_PRODUCT_START', productIdentifier: value4}]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (a1) {
|
|
try {
|
|
binding = env2_32;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding6 = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding7 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding7[40];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value12 = binding6(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
ACRequestOperations = value12.ACRequestOperations;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
REACTIVATE = ACRequestOperations.REACTIVATE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object3.operation = REACTIVATE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
copyDataProperties(object3, object4, undefined);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value13 = binding(object3);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
await value13;
|
|
try {
|
|
value14 = undefined;
|
|
value15 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
if (value15) {
|
|
return value14;
|
|
}
|
|
try {
|
|
requestJSONString = value14.requestJSONString;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_30;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value16 = binding(requestIdentifier, requestJSONString, value4, true);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
await value16;
|
|
try {
|
|
value17 = undefined;
|
|
value18 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
if (value18) {
|
|
return value17;
|
|
}
|
|
try {
|
|
purchaseResponse = value17.purchaseResponse;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
originalPurchase = value17.originalPurchase;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_26;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.encodedReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.retries = 3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.jwsRepresentation = jwsRepresentation;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.source = 'resubscribeGenericSubscription';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value19 = binding(object4);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
await value19;
|
|
try {
|
|
value20 = undefined;
|
|
value21 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
if (value21) {
|
|
return value20;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding8 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding8[20];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value22 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
finishTransaction = value22.finishTransaction;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.purchase = originalPurchase;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value23 = Reflect.apply(finishTransaction, value22, [object4]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
await value23;
|
|
try {
|
|
value24 = undefined;
|
|
value25 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
if (value25) {
|
|
return value24;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding9 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding9[21];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value26 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
dispatch = value26.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.type = 'IAP_PURCHASE_PRODUCT_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.productIdentifier = value4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value26, [object4]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
} else {
|
|
try {
|
|
binding = env2_34;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding5 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding5[39];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value8 = binding4(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
APBRequestOperations = value8.APBRequestOperations;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
REACTIVATE = APBRequestOperations.REACTIVATE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object.operation = REACTIVATE;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
copyDataProperties(object, object4, undefined);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value9 = binding(object);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
await value9;
|
|
try {
|
|
value10 = undefined;
|
|
value11 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
if (value11) {
|
|
return value10;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
binding9 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding9[21];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
value26 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
dispatch = value26.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.type = 'IAP_PURCHASE_PRODUCT_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
object4.productIdentifier = value4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value26, [object4]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value27 = binding(env2_3[21]);
|
|
value27.dispatch({type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value4});
|
|
value = 'partner_subscription';
|
|
if (a1) {
|
|
value = 'advanced_commerce';
|
|
env2_28(error, value);
|
|
return false;
|
|
}
|
|
r3 = value;
|
|
env2_28(error, r3);
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
function _retryPendingPurchases() { // fn#55793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:17023, offset: 0x013b2de9, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55795).apply(this, arguments);
|
|
function* _fun55795(a0, a1) { // fn#55795, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:17090, offset: 0x013b2e22, size: 821 bytes, params: 3, frame: 37
|
|
var r23;
|
|
var toString;
|
|
var binding2;
|
|
var property;
|
|
var value11;
|
|
var track;
|
|
var APPLE_RETRY_PENDING_PURCHASE_STARTED;
|
|
var object;
|
|
var object2;
|
|
var transactionReceipt;
|
|
var jwsRepresentation;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var binding3;
|
|
var value15;
|
|
var finishTransaction;
|
|
var object3;
|
|
var object4;
|
|
var transactionDate;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var binding4;
|
|
var value19;
|
|
var APPLE_RETRY_PENDING_PURCHASE_SUCCEEDED;
|
|
var object5;
|
|
var error;
|
|
var value20;
|
|
var APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
var object6;
|
|
var code;
|
|
var value21;
|
|
var message;
|
|
var push;
|
|
var value22;
|
|
var map;
|
|
var value23;
|
|
var join;
|
|
var value24;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value25;
|
|
var captureBillingException;
|
|
var Error;
|
|
var prototype;
|
|
var value26;
|
|
var value27;
|
|
var object7;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
let binding = env2_1;
|
|
const value4 = binding(env2_3[22]);
|
|
yield value4.restorePurchases({fullRestore: false});
|
|
const value5 = undefined;
|
|
if (false) {
|
|
return value5;
|
|
}
|
|
items2 = [];
|
|
let length = value5.length;
|
|
if (length === 0) {
|
|
return true;
|
|
}
|
|
const value7 = env2_24(value5);
|
|
const value8 = value7();
|
|
let done = value8.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
value25 = 'Failed to retry pending purchases: ' + items2.map(function(a0) {
|
|
return a0.message;
|
|
}).join(', ');
|
|
value = env2_0(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
error = new global.Error();
|
|
object7 = {};
|
|
length = items2.length;
|
|
object7.pendingPurchaseFailures = length.toString();
|
|
length = value5.length;
|
|
object7.totalPendingPurchases = length.toString();
|
|
Reflect.apply(captureBillingException, value, [error, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
let r15 = value8;
|
|
let value9 = r15.value;
|
|
let purchaseResponse = value9.purchaseResponse;
|
|
let productIdentifier = purchaseResponse.productIdentifier;
|
|
let transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
let value10 = transactionIdentifier.toString();
|
|
exceptionMain6: while (true) {
|
|
reducibleLoop6: while (true) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [function(a0) {
|
|
return a0.message;
|
|
}]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
property = binding2[15];
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
track = value11.track;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
APPLE_RETRY_PENDING_PURCHASE_STARTED = binding.APPLE_RETRY_PENDING_PURCHASE_STARTED;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object.product_id = productIdentifier;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object.transaction_id = value10;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
Reflect.apply(track, value11, [APPLE_RETRY_PENDING_PURCHASE_STARTED, object]);
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_26;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object2.encodedReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object2.retries = 3;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object2.presentmentCurrency = a0;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object2.appStoreRegion = a1;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object2.jwsRepresentation = jwsRepresentation;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object2.source = 'retryPendingPurchases';
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
value12 = binding(object2);
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
yield value12;
|
|
try {
|
|
value13 = undefined;
|
|
value14 = false;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
if (value14) {
|
|
return value13;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
property = binding3[20];
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
finishTransaction = value15.finishTransaction;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object4.productId = productIdentifier;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object4.transactionId = value10;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
transactionDate = purchaseResponse.transactionDate;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object4.transactionDate = transactionDate;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object4.transactionReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object3.purchase = object4;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
value16 = Reflect.apply(finishTransaction, value15, [object3]);
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
yield value16;
|
|
try {
|
|
value17 = undefined;
|
|
value18 = false;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
if (value18) {
|
|
return value17;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
binding4 = env2_3;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
property = binding4[15];
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
value19 = binding(property);
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
track = value19.track;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
APPLE_RETRY_PENDING_PURCHASE_SUCCEEDED = binding.APPLE_RETRY_PENDING_PURCHASE_SUCCEEDED;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object5.product_id = productIdentifier;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
object5.transaction_id = value10;
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
try {
|
|
Reflect.apply(track, value19, [APPLE_RETRY_PENDING_PURCHASE_SUCCEEDED, object5]);
|
|
} catch (error) {
|
|
while (true) {
|
|
binding = env2_1;
|
|
value20 = binding(env2_3[15]);
|
|
track = value20.track;
|
|
APPLE_RETRY_PENDING_PURCHASE_FAILED = env2_16.APPLE_RETRY_PENDING_PURCHASE_FAILED;
|
|
object6 = {product_id: productIdentifier, transaction_id: value10};
|
|
code = error.code;
|
|
reducibleJoin74: while (true) {
|
|
if (code == null) {
|
|
r23 = value;
|
|
break reducibleJoin74;
|
|
}
|
|
toString = code.toString;
|
|
value21 = Reflect.apply(toString, code, []);
|
|
r23 = value21;
|
|
break reducibleJoin74;
|
|
}
|
|
object6.error_code = r23;
|
|
message = error.message;
|
|
object6.error_message = message;
|
|
Reflect.apply(track, value20, [APPLE_RETRY_PENDING_PURCHASE_FAILED, object6]);
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [error]);
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
map = items2.map;
|
|
value23 = Reflect.apply(map, items2, [_fun55796]);
|
|
join = value23.join;
|
|
value24 = Reflect.apply(join, value23, [', ']);
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Error = global.Error;
|
|
prototype = Error.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
value27 = error instanceof Object ? error : value26;
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [value27, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue exceptionMain6;
|
|
}
|
|
}
|
|
value22 = value7();
|
|
done = value22.done;
|
|
if (done) {
|
|
break reducibleLoop6;
|
|
}
|
|
r15 = value22;
|
|
value9 = r15.value;
|
|
purchaseResponse = value9.purchaseResponse;
|
|
productIdentifier = purchaseResponse.productIdentifier;
|
|
transactionIdentifier = purchaseResponse.transactionIdentifier;
|
|
toString = transactionIdentifier.toString;
|
|
value10 = Reflect.apply(toString, transactionIdentifier, []);
|
|
continue reducibleLoop6;
|
|
}
|
|
length = items2.length;
|
|
if (length > 0) {
|
|
value23 = items2.map(_fun55796);
|
|
value24 = value23.join(', ');
|
|
concat = global.HermesInternal.concat;
|
|
value25 = 'Failed to retry pending purchases: ' + value24;
|
|
value = env2_0(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
error = new global.Error();
|
|
object7 = {};
|
|
length = items2.length;
|
|
toString = length.toString;
|
|
object7.pendingPurchaseFailures = Reflect.apply(toString, length, []);
|
|
length = value5.length;
|
|
toString = length.toString;
|
|
object7.totalPendingPurchases = Reflect.apply(toString, length, []);
|
|
Reflect.apply(captureBillingException, value, [error, {tags: object7}]);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _mobilePurchaseSKU() { // fn#55797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:18321, offset: 0x013b3157, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55799).apply(this, arguments);
|
|
async function _fun55799(a0, a1) { // fn#55799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:18380, offset: 0x013b3199, size: 1512 bytes, params: 3, frame: 45
|
|
var environment;
|
|
var isFreeForStaffSelfPurchase;
|
|
var r31;
|
|
var r11;
|
|
var value;
|
|
var value2;
|
|
var requestIdentifier;
|
|
var skuId;
|
|
var currency;
|
|
var countryCode;
|
|
var analyticsLocations;
|
|
var analyticsLoadId;
|
|
var isGift;
|
|
var giftInfoOptions;
|
|
var orderId;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var binding;
|
|
var binding2;
|
|
var binding3;
|
|
var ACRequestOperations;
|
|
var CHARGE;
|
|
var value6;
|
|
var value7;
|
|
var dispatch;
|
|
var object;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var trackPaymentFlowStartedAnalyticsAndCTP;
|
|
var APPLE_PARTNER;
|
|
var value11;
|
|
var Error;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value12;
|
|
var prototype;
|
|
var error;
|
|
var value14;
|
|
var retryPendingPurchases2;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var object2;
|
|
var binding4;
|
|
var binding5;
|
|
var property;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var requestJSONString;
|
|
var value22;
|
|
var value23;
|
|
var value24;
|
|
var purchaseResponse;
|
|
var originalPurchase;
|
|
var jwsRepresentation;
|
|
var value25;
|
|
var transactionReceipt;
|
|
var binding6;
|
|
var value26;
|
|
var v3;
|
|
var value27;
|
|
var binding7;
|
|
var value28;
|
|
var object3;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var binding8;
|
|
var value32;
|
|
var binding9;
|
|
var value33;
|
|
var finishTransaction;
|
|
var value34;
|
|
var value35;
|
|
var value36;
|
|
var binding10;
|
|
var value37;
|
|
var value38;
|
|
var track;
|
|
var PAYMENT_FLOW_COMPLETED;
|
|
var binding11;
|
|
var value39;
|
|
var BillingError;
|
|
var value40;
|
|
var billingError;
|
|
var value41;
|
|
var getCurrentUser;
|
|
var value42;
|
|
var isStaff;
|
|
var code;
|
|
var ErrorCodes;
|
|
var BILLING_CANNOT_CHARGE_ZERO_AMOUNT;
|
|
var purchaseSKU;
|
|
var USD;
|
|
var binding12;
|
|
var v4;
|
|
var value43;
|
|
var error2;
|
|
var BILLING_PURCHASE_REQUEST_INVALID;
|
|
var captureBillingException;
|
|
exceptionSkip215: while (true) {
|
|
exceptionLanding215: while (true) {
|
|
exceptionSkip183: while (true) {
|
|
exceptionLanding183: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
requestIdentifier = a0.requestIdentifier;
|
|
skuId = a0.skuId;
|
|
currency = a0.currency;
|
|
countryCode = a0.countryCode;
|
|
analyticsLocations = a0.analyticsLocations;
|
|
analyticsLoadId = a0.analyticsLoadId;
|
|
isGift = a0.isGift;
|
|
giftInfoOptions = a0.giftInfoOptions;
|
|
isFreeForStaffSelfPurchase = a0.isFreeForStaffSelfPurchase;
|
|
if (isFreeForStaffSelfPurchase === undefined) {
|
|
isFreeForStaffSelfPurchase = true;
|
|
}
|
|
orderId = a0.orderId;
|
|
value = a1;
|
|
await undefined;
|
|
value3 = undefined;
|
|
value4 = false;
|
|
if (value4) {
|
|
return value3;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
if (!env2_29()) {
|
|
return false;
|
|
}
|
|
binding = env2_36;
|
|
binding2 = env2_0;
|
|
binding3 = env2_3;
|
|
ACRequestOperations = binding2(binding3[40]).ACRequestOperations;
|
|
CHARGE = ACRequestOperations.CHARGE;
|
|
value6 = binding(CHARGE);
|
|
binding = env2_1;
|
|
value7 = binding(binding3[21]);
|
|
dispatch = value7.dispatch;
|
|
await Reflect.apply(dispatch, value7, [{type: 'IAP_PURCHASE_PRODUCT_START',
|
|
productIdentifier: value6}]);
|
|
value8 = undefined;
|
|
value9 = false;
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
binding = env2_0;
|
|
value10 = binding(env2_3[42]);
|
|
trackPaymentFlowStartedAnalyticsAndCTP = value10.trackPaymentFlowStartedAnalyticsAndCTP;
|
|
object = {sku_id: skuId, load_id: analyticsLoadId, location_stack: analyticsLocations};
|
|
APPLE_PARTNER = env2_19.APPLE_PARTNER;
|
|
object.payment_gateway = APPLE_PARTNER;
|
|
Reflect.apply(trackPaymentFlowStartedAnalyticsAndCTP, value10, [object]);
|
|
try {
|
|
binding = env2_38;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value11 = binding(currency);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
if (value11) {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
retryPendingPurchases2 = retryPendingPurchases;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value15 = retryPendingPurchases2(currency, countryCode);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
await value15;
|
|
try {
|
|
value16 = undefined;
|
|
value17 = false;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
if (value17) {
|
|
return value16;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.sku_id = skuId;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.request_identifier = requestIdentifier;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.currency = currency;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.country_code = countryCode;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.is_gift = isGift;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.gift_info_options = giftInfoOptions;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.order_id = orderId;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding = env2_32;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding4 = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding5 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
property = binding5[40];
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value18 = binding4(property);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
ACRequestOperations = value18.ACRequestOperations;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
CHARGE = ACRequestOperations.CHARGE;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object2.operation = CHARGE;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
copyDataProperties(object2, object, undefined);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value19 = binding(object2);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
await value19;
|
|
try {
|
|
value20 = undefined;
|
|
value21 = false;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
if (value21) {
|
|
return value20;
|
|
}
|
|
try {
|
|
requestJSONString = value20.requestJSONString;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding = env2_30;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value22 = binding(requestIdentifier, requestJSONString, value6, true);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
await value22;
|
|
try {
|
|
value23 = undefined;
|
|
value24 = false;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
if (value24) {
|
|
return value23;
|
|
}
|
|
try {
|
|
purchaseResponse = value23.purchaseResponse;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
originalPurchase = value23.originalPurchase;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value25 = jwsRepresentation != null;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
if (value25) {
|
|
r31 = jwsRepresentation;
|
|
} else {
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
r31 = transactionReceipt;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding6 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
property = binding6[13];
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value26 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
v3 = value26.v3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value27 = Reflect.apply(v3, value26, [r31]);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
if (isGift) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding7 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
property = binding7[21];
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value28 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
dispatch = value28.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.type = 'GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION';
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.key = value27;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
copyDataProperties(object3, giftInfoOptions, value6);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.giftOptions = object3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value28, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_26;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.encodedReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.retries = 3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.presentmentCurrency = currency;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.appStoreRegion = countryCode;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.giftInfoOptions = giftInfoOptions;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.isGift = isGift;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.jwsRepresentation = jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.source = 'mobilePurchaseSKU';
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.orderId = orderId;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value29 = binding(object);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
await value29;
|
|
try {
|
|
value30 = undefined;
|
|
value31 = false;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
if (value31) {
|
|
return value30;
|
|
}
|
|
if (isGift) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding8 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
property = binding8[21];
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value32 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
dispatch = value32.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.type = 'GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION';
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.key = value27;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value32, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding9 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
property = binding9[20];
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value33 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
finishTransaction = value33.finishTransaction;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.purchase = originalPurchase;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value34 = Reflect.apply(finishTransaction, value33, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
await value34;
|
|
try {
|
|
value35 = undefined;
|
|
value36 = false;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
if (value36) {
|
|
return value35;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding10 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
property = binding10[21];
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value37 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
dispatch = value37.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.type = 'IAP_PURCHASE_PRODUCT_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.productIdentifier = value6;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value37, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
property = binding10[15];
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value38 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
track = value38.track;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
PAYMENT_FLOW_COMPLETED = binding.PAYMENT_FLOW_COMPLETED;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.sku_id = skuId;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.load_id = analyticsLoadId;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.location_stack = analyticsLocations;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
binding = env2_19;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
APPLE_PARTNER = binding.APPLE_PARTNER;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.payment_gateway = APPLE_PARTNER;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
object.is_gift = isGift;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
Reflect.apply(track, value38, [PAYMENT_FLOW_COMPLETED, object]);
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
return true;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value12 = "Unable to create subscription with invalid currency '" + currency + "' ";
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
value14 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
try {
|
|
throw value14;
|
|
} catch (error) {
|
|
break exceptionLanding183;
|
|
}
|
|
break exceptionSkip183;
|
|
}
|
|
binding = env2_1;
|
|
binding11 = env2_3;
|
|
value39 = binding(binding11[21]);
|
|
dispatch = value39.dispatch;
|
|
object = {type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: value6};
|
|
Reflect.apply(dispatch, value39, [object]);
|
|
binding = env2_0;
|
|
BillingError = binding(binding11[35]).BillingError;
|
|
prototype = BillingError.prototype;
|
|
value40 = Object.create(prototype, {constructor: {value: BillingError}});
|
|
billingError = new BillingError();
|
|
value41 = billingError instanceof Object ? billingError : value40;
|
|
binding = env2_13;
|
|
getCurrentUser = binding.getCurrentUser;
|
|
value42 = Reflect.apply(getCurrentUser, binding, []);
|
|
if (value42 == null) {
|
|
env2_28(error, 'collectibles');
|
|
return false;
|
|
}
|
|
isStaff = value42.isStaff;
|
|
if (Reflect.apply(isStaff, value42, [])) {
|
|
if (isFreeForStaffSelfPurchase) {
|
|
code = value41.code;
|
|
binding = env2_0;
|
|
ErrorCodes = binding(env2_3[36]).ErrorCodes;
|
|
BILLING_CANNOT_CHARGE_ZERO_AMOUNT = ErrorCodes.BILLING_CANNOT_CHARGE_ZERO_AMOUNT;
|
|
if (code !== BILLING_CANNOT_CHARGE_ZERO_AMOUNT) {
|
|
env2_28(error, 'collectibles');
|
|
return false;
|
|
}
|
|
if (value != null) {
|
|
r11 = value;
|
|
try {
|
|
object = {};
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.countryCode = countryCode;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.expectedAmount = 0;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
binding = env2_17;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
USD = binding.USD;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.expectedCurrency = USD;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
binding12 = env2_3;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
property = binding12[44];
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
value = binding(property);
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
v4 = value.v4;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
value = Reflect.apply(v4, value, []);
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.loadId = value;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.isGift = isGift;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.giftInfoOptions = giftInfoOptions;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
value = r11('collectibles', skuId, object);
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
await value;
|
|
try {
|
|
value = undefined;
|
|
value43 = false;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
if (value43) {
|
|
return value;
|
|
}
|
|
return true;
|
|
}
|
|
binding = env2_0;
|
|
purchaseSKU = binding(env2_3[43]).purchaseSKU;
|
|
r11 = purchaseSKU;
|
|
try {
|
|
object = {};
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.countryCode = countryCode;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.expectedAmount = 0;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
binding = env2_17;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
USD = binding.USD;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.expectedCurrency = USD;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
binding12 = env2_3;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
property = binding12[44];
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
value = binding(property);
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
v4 = value.v4;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
value = Reflect.apply(v4, value, []);
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.loadId = value;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.isGift = isGift;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
object.giftInfoOptions = giftInfoOptions;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
try {
|
|
value = r11('collectibles', skuId, object);
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
await value;
|
|
try {
|
|
value = undefined;
|
|
value43 = false;
|
|
} catch (error2) {
|
|
break exceptionLanding215;
|
|
}
|
|
if (value43) {
|
|
return value;
|
|
}
|
|
return true;
|
|
}
|
|
env2_28(error, 'collectibles');
|
|
return false;
|
|
}
|
|
env2_28(error, 'collectibles');
|
|
return false;
|
|
break exceptionSkip183;
|
|
}
|
|
break exceptionSkip215;
|
|
}
|
|
code = error2.code;
|
|
binding = env2_0;
|
|
ErrorCodes = binding(env2_3[36]).ErrorCodes;
|
|
BILLING_PURCHASE_REQUEST_INVALID = ErrorCodes.BILLING_PURCHASE_REQUEST_INVALID;
|
|
if (code !== BILLING_PURCHASE_REQUEST_INVALID) {
|
|
env2_28(error, 'collectibles');
|
|
return false;
|
|
}
|
|
binding = env2_0;
|
|
value = binding(env2_3[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Reflect.apply(captureBillingException, value, [error2, {}]);
|
|
env2_28(error, 'collectibles');
|
|
return false;
|
|
break exceptionSkip215;
|
|
}
|
|
function retryPendingPurchases(a0, a1) { // fn#55800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:18971, offset: 0x013b3781, size: 30 bytes, params: 3, frame: 13
|
|
return env3_42.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _migrateToACOM() { // fn#55801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:20709, offset: 0x013b379f, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun55803).apply(this, arguments);
|
|
function* _fun55803() { // fn#55803, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:20760, offset: 0x013b37d8, size: 197 bytes, params: 1, frame: 14
|
|
var environment;
|
|
var object;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var post;
|
|
var BILLING_ACOM_SUBSCRIPTION_MIGRATION;
|
|
var value6;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_13;
|
|
if (binding.getCurrentUser() == null) {
|
|
return false;
|
|
}
|
|
if (!env2_29()) {
|
|
return false;
|
|
}
|
|
const r5 = env2_14.getActiveGuildSubscriptions() ?? [];
|
|
if (r5.filter(_fun55804).length === 0) {
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding2[16];
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_18;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
BILLING_ACOM_SUBSCRIPTION_MIGRATION = binding.BILLING_ACOM_SUBSCRIPTION_MIGRATION;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object.url = BILLING_ACOM_SUBSCRIPTION_MIGRATION;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
object.rejectWithError = true;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
return !value6 || value;
|
|
function _fun55804({paymentGateway}) { // fn#55804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:20912, offset: 0x013b389d, size: 28 bytes, params: 2, frame: 2
|
|
const APPLE_PARTNER = env3_19.APPLE_PARTNER;
|
|
return paymentGateway === APPLE_PARTNER;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function init_55805() { // fn#55805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:2988, offset: 0x013b38b9, size: 34 bytes, params: 1, frame: 11
|
|
return Module00005(_fun55807)();
|
|
function* _fun55807() { // fn#55807, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:3016, offset: 0x013b38e4, size: 171 bytes, params: 1, frame: 18
|
|
var Promise;
|
|
var all;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var fetchPremiumSubscriptionPlans;
|
|
var items2;
|
|
var loadProducts;
|
|
var products;
|
|
var value3;
|
|
var fetchSubscriptions;
|
|
var subscriptions;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var restoreAndApplyPurchases;
|
|
var value7;
|
|
var error;
|
|
if (true) {
|
|
try {
|
|
Promise = global.Promise;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
all = Promise.all;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[19];
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = binding(property);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
fetchPremiumSubscriptionPlans = value.fetchPremiumSubscriptionPlans;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(fetchPremiumSubscriptionPlans, value, []);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
items2[0] = value;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
loadProducts = require.loadProducts;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
products = Reflect.apply(loadProducts, require, []);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
items2[1] = products;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[18];
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
fetchSubscriptions = value3.fetchSubscriptions;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
subscriptions = Reflect.apply(fetchSubscriptions, value3, []);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
items2[2] = subscriptions;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(all, Promise, [items2]);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
restoreAndApplyPurchases = require.restoreAndApplyPurchases;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(restoreAndApplyPurchases, require, []);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
return value;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function connectGenericIap() { // fn#55808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:3213, offset: 0x013b398f, size: 27 bytes, params: 1, frame: 11
|
|
return Module00005(_fun55810)();
|
|
function* _fun55810() { // fn#55810, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:3220, offset: 0x013b39b3, size: 220 bytes, params: 1, frame: 17
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var initConnection;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var binding3;
|
|
var value7;
|
|
var dispatch;
|
|
var object;
|
|
var error;
|
|
var binding4;
|
|
var value8;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_9;
|
|
const isGenericIapConnected2 = binding.isGenericIapConnected();
|
|
if (isGenericIapConnected2) {
|
|
return isGenericIapConnected2;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding2[20];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
initConnection = value3.initConnection;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(initConnection, value3, []);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
if (!value6) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding3[21];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
dispatch = value7.dispatch;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
object.type = 'GENERIC_IAP_INIT_CONNECTION';
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
object.connected = value5;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value7, [object]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_3;
|
|
value8 = binding(binding4[17]);
|
|
value8.captureBillingException(error);
|
|
binding = env2_1;
|
|
value = binding(binding4[21]);
|
|
value.dispatch({type: 'GENERIC_IAP_INIT_CONNECTION_FAILED'});
|
|
return false;
|
|
}
|
|
}
|
|
return value5;
|
|
}
|
|
|
|
}
|
|
|
|
function disconnectGenericIap() { // fn#55811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:3519, offset: 0x013b3a8f, size: 49 bytes, params: 1, frame: 13
|
|
(Dispatcher).dispatch({type: 'GENERIC_IAP_END_CONNECTION'});
|
|
}
|
|
|
|
function loadProducts(a0) { // fn#55812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:3611, offset: 0x013b3ac0, size: 34 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return Module00005(_fun55814)();
|
|
function* _fun55814() { // fn#55814, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:3617, offset: 0x013b3aeb, size: 498 bytes, params: 1, frame: 23
|
|
var environment;
|
|
var r5;
|
|
var r7;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var dispatch;
|
|
var object;
|
|
var value4;
|
|
var loadProducts;
|
|
var products;
|
|
var value5;
|
|
var value6;
|
|
var binding3;
|
|
var value7;
|
|
var filter;
|
|
var closure;
|
|
var value8;
|
|
var value10;
|
|
var binding4;
|
|
var value11;
|
|
var fetchStoreFront;
|
|
var storeFront;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var binding5;
|
|
var value15;
|
|
var length;
|
|
var value16;
|
|
var GenericProductIds;
|
|
var length2;
|
|
var value17;
|
|
var binding6;
|
|
var value18;
|
|
var binding7;
|
|
var value19;
|
|
var error;
|
|
var binding8;
|
|
var value20;
|
|
var captureBillingException;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
reducibleJoin4: while (true) {
|
|
reduciblePort97: while (true) {
|
|
exceptionLanding96: while (true) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
binding = env2_1;
|
|
binding8 = env2_3;
|
|
value20 = binding(binding8[21]);
|
|
dispatch = value20.dispatch;
|
|
Reflect.apply(dispatch, value20, [{type: 'IAP_LOAD_PRODUCTS_FAILED'}]);
|
|
binding = env2_0;
|
|
value = binding(binding8[17]);
|
|
captureBillingException = value.captureBillingException;
|
|
Reflect.apply(captureBillingException, value, [error]);
|
|
break reduciblePort97;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
property = binding2[21];
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
dispatch = value3.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object.type = 'IAP_LOAD_PRODUCTS_START';
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value3, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
property = binding2[22];
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
loadProducts = value4.loadProducts;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
products = Reflect.apply(loadProducts, value4, []);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
yield products;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
property = binding3[23];
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
filter = value7.filter;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
closure = _fun55815;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(filter, value7, [value5, closure]);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value10 = require == null;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
if (value10) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
binding4 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
property = binding4[22];
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
fetchStoreFront = value11.fetchStoreFront;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
storeFront = Reflect.apply(fetchStoreFront, value11, []);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
yield storeFront;
|
|
try {
|
|
value12 = undefined;
|
|
value13 = false;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
if (value13) {
|
|
return value12;
|
|
}
|
|
try {
|
|
value14 = value12 != null;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
if (value14) {
|
|
r5 = value12;
|
|
} else {
|
|
try {
|
|
object = {'country': 'US', 'currency': 'usd'};
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
r5 = object;
|
|
}
|
|
r7 = r5;
|
|
} else {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
r7 = require;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
binding5 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
property = binding5[21];
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
dispatch = value15.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object.type = 'IAP_LOAD_PRODUCTS';
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object.products = value5;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value15, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
length = value8.length;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
property = binding5[24];
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value16 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
GenericProductIds = value16.GenericProductIds;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
length2 = GenericProductIds.length;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value17 = length === length2;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
if (value17) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
binding7 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
property = binding7[21];
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value19 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
dispatch = value19.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object.type = 'IAP_LOAD_GENERIC_PRODUCTS';
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object.products = value8;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object.storeFront = r7;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value19, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
} else {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
binding6 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
property = binding6[21];
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
value18 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
dispatch = value18.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object.type = 'GENERIC_IAP_SET_STORE_FRONT';
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
object.storeFront = r7;
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value18, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding96;
|
|
}
|
|
}
|
|
}
|
|
function _fun55815({identifier}) { // fn#55815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:3746, offset: 0x013b3cdd, size: 52 bytes, params: 2, frame: 11
|
|
const GenericProductIds = env3_0(env3_3[24]).GenericProductIds;
|
|
return GenericProductIds.includes(identifier);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createSubscription_55816(a0) { // fn#55816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:4273, offset: 0x013b3d11, size: 34 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return Module00005(_fun55818)();
|
|
function* _fun55818() { // fn#55818, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:4279, offset: 0x013b3d3c, size: 1583 bytes, params: 1, frame: 47
|
|
var environment;
|
|
var r19;
|
|
var r30;
|
|
var r13;
|
|
var price;
|
|
var currencyCode;
|
|
var countryCode;
|
|
var r26;
|
|
var value3;
|
|
var productId;
|
|
var isGift;
|
|
var giftInfoOptions;
|
|
var baseAnalyticsData;
|
|
var applicationId;
|
|
var offerId;
|
|
var onPurchaseComplete;
|
|
var onPurchaseError;
|
|
var orderId;
|
|
var value4;
|
|
var binding;
|
|
var isBusy;
|
|
var value5;
|
|
var getIsPaymentsBlocked;
|
|
var value6;
|
|
var binding2;
|
|
var value7;
|
|
var dispatch;
|
|
var object;
|
|
var value8;
|
|
var value9;
|
|
var binding3;
|
|
var property;
|
|
var value10;
|
|
var canMakePayments;
|
|
var canMakePayments2;
|
|
var value11;
|
|
var value12;
|
|
var hasFetchedSubscriptions;
|
|
var hasFetchedSubscriptions2;
|
|
var binding4;
|
|
var value13;
|
|
var fetchSubscriptions;
|
|
var subscriptions;
|
|
var value14;
|
|
var value15;
|
|
var Error;
|
|
var binding5;
|
|
var value16;
|
|
var intl;
|
|
var string;
|
|
var value17;
|
|
var t;
|
|
var PjfUXe;
|
|
var value18;
|
|
var prototype;
|
|
var error;
|
|
var value20;
|
|
var getCurrentUser;
|
|
var value21;
|
|
var value22;
|
|
var binding6;
|
|
var value23;
|
|
var convertToUUID;
|
|
var id;
|
|
var value24;
|
|
var value25;
|
|
var closure;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var value29;
|
|
var key_id;
|
|
var nonce;
|
|
var signature;
|
|
var Number;
|
|
var timestamp;
|
|
var value30;
|
|
var binding7;
|
|
var value31;
|
|
var purchaseProduct;
|
|
var value32;
|
|
var value33;
|
|
var value34;
|
|
var jwsRepresentation;
|
|
var value35;
|
|
var transactionReceipt;
|
|
var binding8;
|
|
var value36;
|
|
var v3;
|
|
var value37;
|
|
var value38;
|
|
var object2;
|
|
var value39;
|
|
var value40;
|
|
var value41;
|
|
var value42;
|
|
var getProduct;
|
|
var value43;
|
|
var value44;
|
|
var value45;
|
|
var value46;
|
|
var value47;
|
|
var value48;
|
|
var value49;
|
|
var binding9;
|
|
var value50;
|
|
var value51;
|
|
var track;
|
|
var PAYMENT_FLOW_COMPLETED;
|
|
var value52;
|
|
var getPaymentFlowCompletedAnalyticsFields;
|
|
var value53;
|
|
var toLowerCase;
|
|
var value54;
|
|
var value55;
|
|
var binding10;
|
|
var value56;
|
|
var binding11;
|
|
var value57;
|
|
var subscriptions2;
|
|
var value58;
|
|
var value59;
|
|
var getPremiumSubscription;
|
|
var value60;
|
|
var value61;
|
|
var binding12;
|
|
var value62;
|
|
var value63;
|
|
var value64;
|
|
var value66;
|
|
var binding13;
|
|
var value67;
|
|
var value68;
|
|
var value69;
|
|
var value71;
|
|
var value72;
|
|
let value = undefined;
|
|
if (true) {
|
|
reduciblePort292: while (true) {
|
|
exceptionLanding287: while (true) {
|
|
value = undefined;
|
|
var env0_0 = value;
|
|
value3 = environment.__proto__;
|
|
productId = require.productId;
|
|
isGift = require.isGift;
|
|
giftInfoOptions = require.giftInfoOptions;
|
|
baseAnalyticsData = require.baseAnalyticsData;
|
|
applicationId = require.applicationId;
|
|
offerId = require.offerId;
|
|
onPurchaseComplete = require.onPurchaseComplete;
|
|
onPurchaseError = require.onPurchaseError;
|
|
orderId = require.orderId;
|
|
value4 = environment.__proto__.__proto__;
|
|
binding = env2_15;
|
|
isBusy = binding.isBusy;
|
|
if (Reflect.apply(isBusy, binding, [])) {
|
|
break reduciblePort292;
|
|
}
|
|
binding = env2_0;
|
|
value5 = binding(env2_3[25]);
|
|
getIsPaymentsBlocked = value5.getIsPaymentsBlocked;
|
|
value6 = Reflect.apply(getIsPaymentsBlocked, value5, []);
|
|
binding = env2_1;
|
|
binding2 = env2_3;
|
|
if (value6) {
|
|
binding(binding2[26])();
|
|
break reduciblePort292;
|
|
}
|
|
value7 = binding(binding2[21]);
|
|
dispatch = value7.dispatch;
|
|
object = {type: 'IAP_PURCHASE_PRODUCT_START', productIdentifier: productId};
|
|
yield Reflect.apply(dispatch, value7, [object]);
|
|
value8 = undefined;
|
|
value9 = false;
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding3[22];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
canMakePayments = value10.canMakePayments;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
canMakePayments2 = Reflect.apply(canMakePayments, value10, []);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
yield canMakePayments2;
|
|
try {
|
|
value11 = undefined;
|
|
value12 = false;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value12) {
|
|
return value11;
|
|
}
|
|
try {
|
|
binding = env2_14;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
hasFetchedSubscriptions = binding.hasFetchedSubscriptions;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
hasFetchedSubscriptions2 = Reflect.apply(hasFetchedSubscriptions, binding, []);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (hasFetchedSubscriptions2) {
|
|
try {
|
|
binding = env2_13;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
getCurrentUser = binding.getCurrentUser;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value21 = Reflect.apply(getCurrentUser, binding, []);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value22 = value21 == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value22) {
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding13 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding13[27];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value67 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
intl = value67.intl;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
string = intl.string;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding13[27];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value68 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
t = value68.t;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
PjfUXe = t.PjfUXe;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value69 = Reflect.apply(string, intl, [PjfUXe]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value71 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
throw value71;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
} else {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding6 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding6[22];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value23 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
convertToUUID = value23.convertToUUID;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
id = value21.id;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value24 = Reflect.apply(convertToUUID, value23, [id]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value25 = offerId == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value25) {
|
|
r19 = value;
|
|
} else {
|
|
try {
|
|
closure = getTrialOfferSignature;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value26 = closure(productId, offerId, value24);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
yield value26;
|
|
try {
|
|
value27 = undefined;
|
|
value28 = false;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value28) {
|
|
return value27;
|
|
}
|
|
try {
|
|
value29 = value27 == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
reducibleJoin86: while (true) {
|
|
if (value29) {
|
|
r19 = value;
|
|
break reducibleJoin86;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.identifier = offerId;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
key_id = value27.key_id;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.keyIdentifier = key_id;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
nonce = value27.nonce;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.nonce = nonce;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
signature = value27.signature;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.signature = signature;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
Number = global.Number;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
timestamp = value27.timestamp;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value30 = Number(timestamp);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.timestamp = value30;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
r19 = object;
|
|
break reducibleJoin86;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding7 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding7[22];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value31 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
purchaseProduct = value31.purchaseProduct;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value32 = Reflect.apply(purchaseProduct, value31, [productId, r19, value24]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
yield value32;
|
|
try {
|
|
value33 = undefined;
|
|
value34 = false;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value34) {
|
|
return value33;
|
|
}
|
|
try {
|
|
jwsRepresentation = value33.jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value35 = jwsRepresentation != null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value35) {
|
|
r30 = jwsRepresentation;
|
|
} else {
|
|
try {
|
|
transactionReceipt = value33.transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
r30 = transactionReceipt;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding8 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding8[13];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value36 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
v3 = value36.v3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value37 = Reflect.apply(v3, value36, [r30]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding8[21];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value38 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
dispatch = value38.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.type = 'GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION';
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.key = value37;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
copyDataProperties(object2, giftInfoOptions, undefined);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.giftOptions = object2;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value38, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value39 = onPurchaseComplete == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
reducibleJoin128: while (true) {
|
|
if (value39) {
|
|
r13 = value;
|
|
break reducibleJoin128;
|
|
}
|
|
try {
|
|
value40 = onPurchaseComplete();
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
r13 = value40;
|
|
break reducibleJoin128;
|
|
}
|
|
yield r13;
|
|
try {
|
|
value41 = undefined;
|
|
value42 = false;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value42) {
|
|
return value41;
|
|
}
|
|
try {
|
|
binding = env2_15;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
getProduct = binding.getProduct;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value43 = Reflect.apply(getProduct, binding, [productId]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value44 = value43 == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
reducibleJoin140: while (true) {
|
|
if (value44) {
|
|
price = value;
|
|
break reducibleJoin140;
|
|
}
|
|
try {
|
|
price = value43.price;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
break reducibleJoin140;
|
|
}
|
|
try {
|
|
value45 = value43 == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
reducibleJoin145: while (true) {
|
|
if (value45) {
|
|
currencyCode = value;
|
|
break reducibleJoin145;
|
|
}
|
|
try {
|
|
currencyCode = value43.currencyCode;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
break reducibleJoin145;
|
|
}
|
|
try {
|
|
binding = env2_26;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
transactionReceipt = value33.transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.encodedReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.retries = 3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.presentmentCurrency = currencyCode;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.presentmentAmount = price;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value46 = value43 == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
reducibleJoin160: while (true) {
|
|
if (value46) {
|
|
countryCode = value;
|
|
break reducibleJoin160;
|
|
}
|
|
try {
|
|
countryCode = value43.countryCode;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
break reducibleJoin160;
|
|
}
|
|
try {
|
|
object.appStoreRegion = countryCode;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.giftInfoOptions = giftInfoOptions;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
jwsRepresentation = value33.jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.jwsRepresentation = jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.source = 'createSubscription';
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.orderId = orderId;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value47 = binding(object);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
yield value47;
|
|
try {
|
|
value48 = undefined;
|
|
value49 = false;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value49) {
|
|
return value48;
|
|
}
|
|
try {
|
|
binding = env2_11;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding();
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding9 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding9[21];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value50 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
dispatch = value50.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.type = 'GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION';
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.key = value37;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value50, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding9[15];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value51 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
track = value51.track;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
PAYMENT_FLOW_COMPLETED = binding.PAYMENT_FLOW_COMPLETED;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding9[28];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value52 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
getPaymentFlowCompletedAnalyticsFields = value52.getPaymentFlowCompletedAnalyticsFields;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.subscription_plan_gateway_plan_id = productId;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.price = price;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.regular_price = price;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value53 = currencyCode == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
reducibleJoin206: while (true) {
|
|
if (value53) {
|
|
r26 = value;
|
|
break reducibleJoin206;
|
|
}
|
|
try {
|
|
toLowerCase = currencyCode.toLowerCase;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value54 = Reflect.apply(toLowerCase, currencyCode, []);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
r26 = value54;
|
|
break reducibleJoin206;
|
|
}
|
|
try {
|
|
object.currency = r26;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.application_id = applicationId;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value55 = Reflect.apply(getPaymentFlowCompletedAnalyticsFields, value52, [baseAnalyticsData,
|
|
object]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
Reflect.apply(track, value51, [PAYMENT_FLOW_COMPLETED, value55]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding10 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding10[21];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value56 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
dispatch = value56.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.type = 'IAP_PURCHASE_PRODUCT_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
object.productIdentifier = productId;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value56, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (isGift) {
|
|
break reduciblePort292;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding11 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding11[18];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value57 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
fetchSubscriptions = value57.fetchSubscriptions;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
subscriptions2 = Reflect.apply(fetchSubscriptions, value57, []);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
yield subscriptions2;
|
|
try {
|
|
value58 = undefined;
|
|
value59 = false;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value59) {
|
|
return value58;
|
|
}
|
|
try {
|
|
binding = env2_14;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
getPremiumSubscription = binding.getPremiumSubscription;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value60 = Reflect.apply(getPremiumSubscription, binding, []);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
env0_0 = value60;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value61 = value60 == null;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (!value61) {
|
|
try {
|
|
binding = env2_12;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
closure = _fun55820;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding(closure);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
break reduciblePort292;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding12 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding12[27];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value62 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
intl = value62.intl;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
string = intl.string;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding12[27];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value63 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
t = value63.t;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
PjfUXe = t.PjfUXe;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value64 = Reflect.apply(string, intl, [PjfUXe]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value66 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
throw value66;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
}
|
|
} else {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding4 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding4[18];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value13 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
fetchSubscriptions = value13.fetchSubscriptions;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
subscriptions = Reflect.apply(fetchSubscriptions, value13, []);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
yield subscriptions;
|
|
try {
|
|
value14 = undefined;
|
|
value15 = false;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
if (value15) {
|
|
return value14;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
binding5 = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding5[27];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value16 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
intl = value16.intl;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
string = intl.string;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
property = binding5[27];
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value17 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
t = value17.t;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
PjfUXe = t.PjfUXe;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value18 = Reflect.apply(string, intl, [PjfUXe]);
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
value20 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
try {
|
|
throw value20;
|
|
} catch (error) {
|
|
break exceptionLanding287;
|
|
}
|
|
}
|
|
}
|
|
binding = env2_1;
|
|
value72 = binding(env2_3[21]);
|
|
dispatch = value72.dispatch;
|
|
Reflect.apply(dispatch, value72, [{type: 'IAP_PURCHASE_PRODUCT_FAILURE', productIdentifier: productId}]);
|
|
reducibleJoin289: while (true) {
|
|
if (onPurchaseError == null) {
|
|
break reducibleJoin289;
|
|
}
|
|
onPurchaseError(error);
|
|
break reducibleJoin289;
|
|
}
|
|
env2_28(error, 'subscription');
|
|
break reduciblePort292;
|
|
}
|
|
}
|
|
return value;
|
|
function getTrialOfferSignature() { // fn#55819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:4930, offset: 0x013b436b, size: 30 bytes, params: 1, frame: 13
|
|
return env3_27.apply(this, arguments);
|
|
}
|
|
|
|
function _fun55820() { // fn#55820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6233, offset: 0x013b4389, size: 52 bytes, params: 1, frame: 13
|
|
var environment;
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_1(env3_3[29]);
|
|
value.openLazy({importer: importer_55821});
|
|
function importer_55821() { // fn#55821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6266, offset: 0x013b43bd, size: 62 bytes, params: 1, frame: 13
|
|
var environment;
|
|
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
const binding = env4_0;
|
|
const binding2 = env4_3;
|
|
value = binding(binding2[31]);
|
|
value = value(binding2[30], binding2.paths);
|
|
return value.then(function({default: env0_0}) {
|
|
return _fun55823;
|
|
});
|
|
function _fun55822({default: env0_0}) { // fn#55822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6301, offset: 0x013b43fb, size: 21 bytes, params: 2, frame: 2
|
|
return _fun55823;
|
|
function _fun55823(a0) { // fn#55823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6316, offset: 0x013b4410, size: 75 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
const binding = env6_20;
|
|
const binding2 = env0_0;
|
|
const object = {};
|
|
copyDataProperties(object, a0, undefined);
|
|
object['subscription'] = env3_0;
|
|
object['onClose'] = onClose_55824;
|
|
return binding(binding2, object);
|
|
function onClose_55824() { // fn#55824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6352, offset: 0x013b445b, size: 77 bytes, params: 1, frame: 14
|
|
let binding = env0_0;
|
|
binding.onClose();
|
|
binding = env7_1;
|
|
const binding2 = env7_3;
|
|
const value2 = binding(binding2[32]);
|
|
const popWithKey = value2.popWithKey;
|
|
const PREMIUM_KEY = env7_0(binding2[33]).PREMIUM_KEY;
|
|
Reflect.apply(popWithKey, value2, [PREMIUM_KEY]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function restoreAndApplyPurchases() { // fn#55825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6572, offset: 0x013b44a8, size: 47 bytes, params: 1, frame: 12
|
|
const value = a0;
|
|
const env0_0 = value !== undefined ? value : false;
|
|
return Module00005(_fun55827)();
|
|
function* _fun55827() { // fn#55827, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6624, offset: 0x013b44e0, size: 1124 bytes, params: 1, frame: 36
|
|
var r26;
|
|
var environment;
|
|
var r2;
|
|
var r4;
|
|
var r5;
|
|
var r7;
|
|
var r8;
|
|
var r9;
|
|
var r10;
|
|
var r11;
|
|
var r12;
|
|
var r13;
|
|
var r14;
|
|
var r15;
|
|
var r16;
|
|
var r17;
|
|
var r18;
|
|
var r20;
|
|
var r24;
|
|
var r25;
|
|
var r27;
|
|
var r6;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var __proto__;
|
|
var binding;
|
|
var isBusy;
|
|
var value6;
|
|
var value7;
|
|
var dispatch;
|
|
var object;
|
|
var value8;
|
|
var loadProducts;
|
|
var products;
|
|
var value9;
|
|
var value10;
|
|
var binding2;
|
|
var property;
|
|
var value11;
|
|
var restorePurchases;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var length;
|
|
var value15;
|
|
var value16;
|
|
var binding3;
|
|
var value17;
|
|
var value18;
|
|
var uniqBy;
|
|
var closure;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var items2;
|
|
var generator;
|
|
var value22;
|
|
var value23;
|
|
var done;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var Symbol;
|
|
var iterator;
|
|
var next;
|
|
var error;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var value32;
|
|
var value33;
|
|
var value34;
|
|
var value35;
|
|
var value36;
|
|
var value37;
|
|
var value38;
|
|
var binding4;
|
|
var fetchSubscriptions;
|
|
var value39;
|
|
var forEach;
|
|
var Error;
|
|
var prototype;
|
|
var value40;
|
|
var binding5;
|
|
var captureBillingException;
|
|
exceptionLanding158: while (true) {
|
|
exceptionLanding149: while (true) {
|
|
value = Object.create(environment);
|
|
value2 = undefined;
|
|
value3 = false;
|
|
if (value3) {
|
|
return value2;
|
|
}
|
|
value4 = undefined;
|
|
var env0_0 = value4;
|
|
var env0_1 = value4;
|
|
__proto__ = environment.__proto__.__proto__;
|
|
binding = env2_15;
|
|
isBusy = binding.isBusy;
|
|
if (Reflect.apply(isBusy, binding, [])) {
|
|
return [];
|
|
}
|
|
binding = env2_1;
|
|
value6 = 21;
|
|
value7 = binding(env2_3[value6]);
|
|
dispatch = value7.dispatch;
|
|
Reflect.apply(dispatch, value7, [{type: 'IAP_RESTORE_PURCHASES_START'}]);
|
|
value8 = environment.__proto__;
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
loadProducts = importDefault.loadProducts;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
products = Reflect.apply(loadProducts, importDefault, []);
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
yield products;
|
|
try {
|
|
try {
|
|
value9 = undefined;
|
|
value10 = false;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
if (value10) {
|
|
value = env2_1(env2_3[value6]);
|
|
value.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return value9;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env2_3;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[22];
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
restorePurchases = value11.restorePurchases;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
object.fullRestore = require;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value12 = Reflect.apply(restorePurchases, value11, [object]);
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
yield value12;
|
|
try {
|
|
try {
|
|
value13 = undefined;
|
|
value14 = false;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
if (value14) {
|
|
value = env2_1(env2_3[value6]);
|
|
value.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return value13;
|
|
}
|
|
try {
|
|
try {
|
|
length = value13.length;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
value15 = 0;
|
|
try {
|
|
try {
|
|
value16 = value15 === length;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
if (value16) {
|
|
value = env2_1(env2_3[value6]);
|
|
value.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return [];
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
binding3 = env2_3;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding3[23];
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value17 = binding(property);
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value18 = value17(value13);
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
uniqBy = value18.uniqBy;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
closure = function(a0) {
|
|
return a0.purchaseResponse.jwsRepresentation ?? a0.purchaseResponse.originalTransactionIdentifier;
|
|
};
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value19 = Reflect.apply(uniqBy, value18, [closure]);
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value20 = value19.value;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value21 = Reflect.apply(value20, value19, []);
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
env0_0 = object;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
env0_1 = items2;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
generator = loop_55830;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_24;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value22 = binding(value21);
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value23 = value22();
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
done = value23.done;
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
break exceptionLanding158;
|
|
}
|
|
value24 = global;
|
|
value25 = 'iterator is not an object';
|
|
value26 = 'iterator.throw() did not return an object';
|
|
value27 = 'throw';
|
|
value28 = 'iterator.next() did not return an object';
|
|
if (done) {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
r7 = value24;
|
|
r8 = value;
|
|
r9 = items2;
|
|
r10 = object;
|
|
r12 = value15;
|
|
} else {
|
|
r2 = __proto__;
|
|
r4 = value4;
|
|
r5 = value6;
|
|
r7 = value24;
|
|
r8 = value;
|
|
r9 = items2;
|
|
r10 = object;
|
|
r11 = value28;
|
|
r12 = value15;
|
|
r13 = value27;
|
|
r14 = value26;
|
|
r15 = value25;
|
|
r16 = value23;
|
|
r17 = generator;
|
|
r18 = value22;
|
|
reducibleLoop52: while (true) {
|
|
try {
|
|
try {
|
|
value = r16.value;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(r17, r4, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
Symbol = r7.Symbol;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
iterator = Symbol.iterator;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
property = value[iterator];
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(property, value, []);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
ensureObject(value, r15, r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
next = value.next;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
r20 = value;
|
|
r24 = value4;
|
|
r25 = next;
|
|
reduciblePort111: while (true) {
|
|
exceptionLanding73: while (true) {
|
|
reducibleLoop64: while (true) {
|
|
try {
|
|
try {
|
|
value = Reflect.apply(r25, r20, [r24]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
ensureObject(value, r11, r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
done = value.done;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (done) {
|
|
r6 = value;
|
|
break reduciblePort111;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
generatorSetDelegated(value);
|
|
} catch (error) {
|
|
break exceptionLanding73;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
yield value;
|
|
reducibleLoop84: while (true) {
|
|
try {
|
|
try {
|
|
try {
|
|
value = undefined;
|
|
value30 = false;
|
|
} catch (error) {
|
|
break exceptionLanding73;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (value30) {
|
|
try {
|
|
try {
|
|
value31 = getMethod(r20, 'return', r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value32 = value31 === r4;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (value32) {
|
|
value35 = Reflect.apply(env0_1, r4, [env0_3[r5]]);
|
|
value35.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return value;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(value31, r20, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
ensureObject(value, 'iterator.return() did not return an object',
|
|
value31);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
done = value.done;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (done) {
|
|
try {
|
|
try {
|
|
value = value.value;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
binding = env0_1;
|
|
value34 = Reflect.apply(binding, r4, [env0_3[r5]]);
|
|
dispatch = value34.dispatch;
|
|
Reflect.apply(dispatch, value34, [{type: 'IAP_RESTORE_PURCHASES_END'}]);
|
|
return value;
|
|
}
|
|
try {
|
|
try {
|
|
value33 = generatorSetDelegated(value);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
yield value;
|
|
r26 = value33;
|
|
continue reducibleLoop84;
|
|
}
|
|
r24 = value;
|
|
continue reducibleLoop64;
|
|
}
|
|
}
|
|
}
|
|
exceptionRetry73: while (true) {
|
|
try {
|
|
try {
|
|
value = getMethod(r20, r13, r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value29 = value === r4;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (value29) {
|
|
value = 'return';
|
|
try {
|
|
try {
|
|
value36 = getMethod(r20, value, r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value37 = value36 === r4;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
reducibleJoin108: while (true) {
|
|
if (value37) {
|
|
r27 = value;
|
|
break reducibleJoin108;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(value36, r20, []);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
value38 = 'iterator.return() did not return an object';
|
|
try {
|
|
try {
|
|
ensureObject(value, value38, r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
r27 = value38;
|
|
break reducibleJoin108;
|
|
}
|
|
try {
|
|
try {
|
|
throwTypeError('yield* delegate must have a .throw() method', r27);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
throw r4;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
} else {
|
|
try {
|
|
try {
|
|
value = Reflect.apply(value, r20, [error]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
ensureObject(value, r14, r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
done = value.done;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (done) {
|
|
r6 = value;
|
|
} else {
|
|
try {
|
|
try {
|
|
generatorSetDelegated(value);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
yield value;
|
|
reducibleLoop84: while (true) {
|
|
try {
|
|
try {
|
|
try {
|
|
value = undefined;
|
|
value30 = false;
|
|
} catch (error) {
|
|
continue exceptionRetry73;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
reducibleJoin86: while (true) {
|
|
if (value30) {
|
|
break reducibleJoin86;
|
|
}
|
|
r24 = value;
|
|
try {
|
|
try {
|
|
value = Reflect.apply(r25, r20, [r24]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
ensureObject(value, r11, r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
done = value.done;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (done) {
|
|
r6 = value;
|
|
break reducibleLoop84;
|
|
}
|
|
try {
|
|
try {
|
|
try {
|
|
generatorSetDelegated(value);
|
|
} catch (error) {
|
|
continue exceptionRetry73;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
yield value;
|
|
continue reducibleLoop84;
|
|
}
|
|
try {
|
|
try {
|
|
value31 = getMethod(r20, 'return', r26);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value32 = value31 === r4;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (value32) {
|
|
value35 = Reflect.apply(env0_1, r4, [env0_3[r5]]);
|
|
value35.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return value;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(value31, r20, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
ensureObject(value, 'iterator.return() did not return an object',
|
|
value31);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
done = value.done;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (done) {
|
|
try {
|
|
try {
|
|
value = value.value;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
binding = env0_1;
|
|
value34 = Reflect.apply(binding, r4, [env0_3[r5]]);
|
|
dispatch = value34.dispatch;
|
|
Reflect.apply(dispatch, value34, [{type: 'IAP_RESTORE_PURCHASES_END'}]);
|
|
return value;
|
|
}
|
|
try {
|
|
try {
|
|
value33 = generatorSetDelegated(value);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
yield value;
|
|
r26 = value33;
|
|
continue reducibleLoop84;
|
|
}
|
|
}
|
|
}
|
|
break reduciblePort111;
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
r6.value;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(r18, r4, []);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
done = value.done;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (!done) {
|
|
r16 = value;
|
|
continue reducibleLoop52;
|
|
}
|
|
try {
|
|
try {
|
|
length = r10.length;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = length > r12;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (value) {
|
|
try {
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
binding4 = env0_3;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding4[18];
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(binding, r4, [property]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
fetchSubscriptions = value.fetchSubscriptions;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(fetchSubscriptions, value, []);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
yield value;
|
|
try {
|
|
try {
|
|
value = undefined;
|
|
value39 = false;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
reducibleJoin130: while (true) {
|
|
if (value39) {
|
|
value40 = Reflect.apply(env0_1, r4, [env0_3[r5]]);
|
|
value40.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return value;
|
|
}
|
|
break reducibleJoin130;
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
length = r9.length;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = length > r12;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (!value) {
|
|
value = Reflect.apply(env0_1, r4, [env0_3[r5]]);
|
|
value.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return r10;
|
|
}
|
|
try {
|
|
try {
|
|
forEach = r9.forEach;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
closure = _fun55832;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(forEach, r9, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
Error = r7.Error;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
error = new Error('There were some errors while trying to restore');
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = error instanceof Object ? error : value;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
throw value;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
length = r10.length;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = length > r12;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (value) {
|
|
try {
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
binding4 = env0_3;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding4[18];
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(binding, r4, [property]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
fetchSubscriptions = value.fetchSubscriptions;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(fetchSubscriptions, value, []);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
yield value;
|
|
try {
|
|
try {
|
|
value = undefined;
|
|
value39 = false;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
reducibleJoin130: while (true) {
|
|
if (value39) {
|
|
value40 = Reflect.apply(env0_1, r4, [env0_3[r5]]);
|
|
value40.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return value;
|
|
}
|
|
break reducibleJoin130;
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
length = r9.length;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = length > r12;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
if (!value) {
|
|
value = Reflect.apply(env0_1, r4, [env0_3[r5]]);
|
|
value.dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
return r10;
|
|
}
|
|
try {
|
|
try {
|
|
forEach = r9.forEach;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
closure = _fun55832;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(forEach, r9, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
Error = r7.Error;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
error = new Error('There were some errors while trying to restore');
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
value = error instanceof Object ? error : value;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
try {
|
|
throw value;
|
|
} catch (error) {
|
|
break exceptionLanding149;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
}
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
binding5 = env0_3;
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
property = binding5[17];
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
value = Reflect.apply(binding, r4, [property]);
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
captureBillingException = value.captureBillingException;
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
Reflect.apply(captureBillingException, value, [error]);
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding158;
|
|
}
|
|
}
|
|
Reflect.apply(env0_1, r4, [env0_3[r5]]).dispatch({type: 'IAP_RESTORE_PURCHASES_END'});
|
|
throw error;
|
|
function* loop_55830(a0) { // fn#55830, original name: ?anon_0__loop, inferred name: loop_55830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:6996, offset: 0x013b4970, size: 408 bytes, params: 2, frame: 20
|
|
var environment;
|
|
var r10;
|
|
var currencyCode;
|
|
var price;
|
|
var countryCode;
|
|
var gift_style;
|
|
var reward_sku_ids;
|
|
var transactionReceipt;
|
|
var object;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var object2;
|
|
var value11;
|
|
var value12;
|
|
var binding2;
|
|
var value14;
|
|
var then;
|
|
var closure;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var push;
|
|
var error;
|
|
var value20;
|
|
let value = undefined;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
value = undefined;
|
|
var purchaseResponse = a0.purchaseResponse;
|
|
var binding = env4_15;
|
|
var product = binding.getProduct(purchaseResponse.productIdentifier);
|
|
var jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
reducibleJoin3: while (true) {
|
|
if (jwsRepresentation != null) {
|
|
r10 = jwsRepresentation;
|
|
break reducibleJoin3;
|
|
}
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
r10 = transactionReceipt;
|
|
break reducibleJoin3;
|
|
}
|
|
binding = env4_1;
|
|
var value6 = binding(env4_3[13]).v3(r10);
|
|
binding = env4_10;
|
|
var giftOptionsForKey = binding.getGiftOptionsForKey(value6);
|
|
reducibleJoin5: while (true) {
|
|
reduciblePort60: while (true) {
|
|
exceptionLanding59: while (true) {
|
|
try {
|
|
binding = env4_26;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
value20 = environment.__proto__;
|
|
binding = env1_1;
|
|
push = binding.push;
|
|
Reflect.apply(push, binding, [error]);
|
|
break reduciblePort60;
|
|
}
|
|
return value;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
jwsRepresentation = purchaseResponse.jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
object.jwsRepresentation = jwsRepresentation;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
transactionReceipt = purchaseResponse.transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
object.encodedReceipt = transactionReceipt;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
value8 = product == null;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
reducibleJoin16: while (true) {
|
|
if (value8) {
|
|
currencyCode = value;
|
|
break reducibleJoin16;
|
|
}
|
|
try {
|
|
currencyCode = product.currencyCode;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
break reducibleJoin16;
|
|
}
|
|
try {
|
|
object.presentmentCurrency = currencyCode;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
value9 = product == null;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
reducibleJoin22: while (true) {
|
|
if (value9) {
|
|
price = value;
|
|
break reducibleJoin22;
|
|
}
|
|
try {
|
|
price = product.price;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
try {
|
|
object.presentmentAmount = price;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
value10 = product == null;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
reducibleJoin27: while (true) {
|
|
if (value10) {
|
|
countryCode = value;
|
|
break reducibleJoin27;
|
|
}
|
|
try {
|
|
countryCode = product.countryCode;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
break reducibleJoin27;
|
|
}
|
|
try {
|
|
object.appStoreRegion = countryCode;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
value11 = giftOptionsForKey == null;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
reducibleJoin34: while (true) {
|
|
if (value11) {
|
|
gift_style = value;
|
|
break reducibleJoin34;
|
|
}
|
|
try {
|
|
gift_style = giftOptionsForKey.gift_style;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
try {
|
|
object2.gift_style = gift_style;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
value12 = giftOptionsForKey == null;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
reducibleJoin39: while (true) {
|
|
if (value12) {
|
|
reward_sku_ids = value;
|
|
break reducibleJoin39;
|
|
}
|
|
try {
|
|
reward_sku_ids = giftOptionsForKey.reward_sku_ids;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
try {
|
|
object2.reward_sku_ids = reward_sku_ids;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
object.giftInfoOptions = object2;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
object.source = 'restoreSubscription';
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
binding2 = env3_0;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
object.skipDupCheck = binding2;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
value14 = binding(object);
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
then = value14.then;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
closure = _fun55831;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
value15 = Reflect.apply(then, value14, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
yield value15;
|
|
try {
|
|
value16 = undefined;
|
|
value17 = false;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
if (value17) {
|
|
return value16;
|
|
}
|
|
try {
|
|
value18 = value16 == null;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
reducibleJoin60: while (true) {
|
|
if (value18) {
|
|
break reducibleJoin60;
|
|
}
|
|
value19 = environment.__proto__;
|
|
try {
|
|
binding = env1_0;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
push = binding.push;
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
try {
|
|
Reflect.apply(push, binding, [purchaseResponse]);
|
|
} catch (error) {
|
|
break exceptionLanding59;
|
|
}
|
|
break reducibleJoin60;
|
|
}
|
|
}
|
|
return value;
|
|
function _fun55831(a0) { // fn#55831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:7573, offset: 0x013b4b08, size: 191 bytes, params: 2, frame: 18
|
|
let value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
const value2 = env5_0(env5_3[20]);
|
|
const finishTransaction = value2.finishTransaction;
|
|
const object2 = {};
|
|
object2.productId = purchaseResponse.productIdentifier;
|
|
object2.transactionDate = purchaseResponse.transactionDate;
|
|
object2.transactionReceipt = purchaseResponse.transactionReceipt;
|
|
object2.transactionId = purchaseResponse.transactionIdentifier.toString();
|
|
Reflect.apply(finishTransaction, value2, [{purchase: object2}]);
|
|
const value4 = null;
|
|
if (value4 != a0) {
|
|
value = env5_1(env5_3[21]);
|
|
value.dispatch({type: 'GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION', key: env0_2});
|
|
}
|
|
return value4 != a0 ? env0_0 : value4;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun55832(a0) { // fn#55832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:8077, offset: 0x013b4bc7, size: 41 bytes, params: 2, frame: 12
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
env3_0(env3_3[17]).captureBillingException(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun55796(a0) { // fn#55796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7215:18105, offset: 0x00d0931e, size: 10 bytes, params: 2, frame: 1
|
|
return a0.message;
|
|
}
|
|
|
|
global.__d(_fun55751, 7037, [29, 5, 31, 5142, 7038, 7039, 1878, 3808, 5140, 661, 482, 33, 3, 1225, 587, 683, 507,
|
|
3817, 4223, 6847, 7336, 694, 7355, 22, 5143, 7035, 7360, 1244, 7294, 4496, 7301, 1962, 5080, 7028, 7362, 4131,
|
|
3824, 5046, 480, 7498, 7499, 1392, 7295, 7500, 491,
|
|
2]) /* metro module 7037, dependencies: [29, 5, 31, 5142, 7038, 7039, 1878, 3808, 5140, 661, 482, 33, 3, 1225, 587, 683, 507, 3817, 4223, 6847, 7336, 694, 7355, 22, 5143, 7035, 7360, 1244, 7294, 4496, 7301, 1962, 5080, 7028, 7362, 4131, 3824, 5046, 480, 7498, 7499, 1392, 7295, 7500, 491, 2] */;
|