Files
discord-decomp/sources/actions/SKUActionCreators.tsx
T
2026-07-28 01:06:53 +03:00

6485 lines
291 KiB
TypeScript

/* Metro module 7500; source: actions/SKUActionCreators.tsx; dependencies: [5, 7501, 4279, 661, 694, 4141, 3825, 7502, 5179, 4131, 3824, 507, 3817, 4223, 4232, 1360, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import SKUStore from '../stores/game_store/SKUStore.tsx'; /* Metro dependency 4279 */
import StorefrontPromotionOverrideStore from '../modules/storefront/StorefrontPromotionOverrideStore.tsx'; /* Metro dependency 7501 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun60429(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:6, offset: 0x01702e85, size: 393 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {isGift: false};
(FileImportTrackerModule).fileFinishedImporting('actions/SKUActionCreators.tsx');
exports.fetchSKU = function() {
return _fetchSKU.apply(this, arguments);
};
exports.fetchPublishedSKU = function() {
return _fetchPublishedSKU.apply(this, arguments);
};
exports.fetchTestSKUsForApplication = function() {
return _fetchTestSKUsForApplication.apply(this, arguments);
};
exports.previewPurchaseSku = function() {
return _previewPurchaseSku.apply(this, arguments);
};
exports.grantChannelBranchEntitlement = function() {
return _grantChannelBranchEntitlement.apply(this, arguments);
};
exports.orderSKU = function() {
return _orderSKU.apply(this, arguments);
};
exports.purchaseSKU = function() {
return _purchaseSKU.apply(this, arguments);
};
exports.resendPaymentVerificationEmail = function() {
return _resendPaymentVerificationEmail.apply(this, arguments);
};
exports.clearPurchaseError = clearPurchaseError;
exports.showPurchaseConfirmationStep = showPurchaseConfirmationStep;
exports.updateSKUPaymentIsGift = updateSKUPaymentIsGift;
function _fetchSKU() { // fn#60430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:178, offset: 0x0170300e, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun60432).apply(this, arguments);
function* _fun60432(a0) { // fn#60432, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:219, offset: 0x01703047, size: 327 bytes, params: 2, frame: 19
var binding2;
var property;
var value5;
var httpGetWithCountryCodeQuery;
var STORE_SKU;
var value6;
var value7;
var value8;
var value9;
var binding3;
var value10;
var body;
var error;
var binding4;
var value11;
var prototype;
var value12;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_5;
if (binding.get(a0) == null) {
binding = env2_1;
binding(env2_2[4]).dispatch({type: 'SKU_FETCH_START', skuId: a0});
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
property = binding2[5];
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
value5 = binding(property);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
httpGetWithCountryCodeQuery = value5.httpGetWithCountryCodeQuery;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
object = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
binding = env2_7;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
STORE_SKU = binding.STORE_SKU;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
value6 = Reflect.apply(STORE_SKU, binding, [a0]);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
object.url = value6;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
object.rejectWithError = false;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
value7 = Reflect.apply(httpGetWithCountryCodeQuery, value5, [object]);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
yield value7;
try {
value8 = undefined;
value9 = false;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
if (value9) {
return value8;
}
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
property = binding3[4];
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
value10 = binding(property);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
dispatch = value10.dispatch;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
object = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
object.type = 'SKU_FETCH_SUCCESS';
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
body = value8.body;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
object.sku = body;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
try {
Reflect.apply(dispatch, value10, [object]);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a0});
value = binding(binding4[6]);
value11 = 'Failed to fetch SKU ' + a0;
prototype = value.prototype;
value12 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value12;
throw value;
}
}
}
}
}
function _fetchPublishedSKU() { // fn#60433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:585, offset: 0x0170318e, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun60435).apply(this, arguments);
function* _fun60435(a0, a1, a2, a3) { // fn#60435, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:644, offset: 0x017031c7, size: 579 bytes, params: 5, frame: 24
var object2;
var r12;
var r11;
var binding2;
var property;
var value5;
var isTestModeForApplication;
var isTestModeForApplication2;
var STORE_PUBLISHED_LISTINGS_SKU;
var value6;
var STORE_SKU;
var value7;
var object;
var binding3;
var value8;
var ShopVariantsReturnStyle;
var VARIANTS_GROUP;
var value9;
var Object;
var keys;
var value10;
var length;
var value11;
var binding4;
var value12;
var httpGetWithCountryCodeQuery;
var value13;
var value14;
var value15;
var binding5;
var value16;
var body;
var sku;
var binding6;
var value17;
var error;
var binding7;
var value18;
var prototype;
var value19;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_5;
if (binding.get(a1) == null) {
binding = env2_1;
binding(env2_2[4]).dispatch({type: 'SKU_FETCH_START', skuId: a1});
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
property = binding2[7];
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value5 = binding(property);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
isTestModeForApplication = value5.isTestModeForApplication;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
isTestModeForApplication2 = Reflect.apply(isTestModeForApplication, value5, [a0]);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
object2 = {};
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
binding = env2_7;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
if (isTestModeForApplication2) {
try {
STORE_SKU = binding.STORE_SKU;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value7 = Reflect.apply(STORE_SKU, binding, [a1]);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
r12 = value7;
} else {
try {
STORE_PUBLISHED_LISTINGS_SKU = binding.STORE_PUBLISHED_LISTINGS_SKU;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value6 = Reflect.apply(STORE_PUBLISHED_LISTINGS_SKU, binding, [a1]);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
r12 = value6;
}
try {
object2.url = r12;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
object2.rejectWithError = false;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
object = {};
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
property = binding3[8];
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value8 = binding(property);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
ShopVariantsReturnStyle = value8.ShopVariantsReturnStyle;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
VARIANTS_GROUP = ShopVariantsReturnStyle.VARIANTS_GROUP;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value9 = a2 !== VARIANTS_GROUP;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
if (!value9) {
try {
object.variants_return_style = a2;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
}
if (a3) {
try {
object.include_unpublished = true;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
}
try {
Object = global.Object;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
keys = Object.keys;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value10 = Reflect.apply(keys, Object, [object]);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
length = value10.length;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value11 = length > 0;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
if (value11) {
try {
object2.query = object;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
binding4 = env2_2;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
property = binding4[5];
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value12 = binding(property);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
httpGetWithCountryCodeQuery = value12.httpGetWithCountryCodeQuery;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value13 = Reflect.apply(httpGetWithCountryCodeQuery, value12, [object2]);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
yield value13;
try {
value14 = undefined;
value15 = false;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
if (value15) {
return value14;
}
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
binding5 = env2_2;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
property = binding5[4];
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value16 = binding(property);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
dispatch = value16.dispatch;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
object2 = {};
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
object2.type = 'SKU_FETCH_SUCCESS';
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
body = value14.body;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
if (isTestModeForApplication2) {
r11 = body;
} else {
try {
sku = body.sku;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
r11 = sku;
}
try {
object2.sku = r11;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
Reflect.apply(dispatch, value16, [object2]);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
if (!isTestModeForApplication2) {
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
binding6 = env2_2;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
property = binding6[4];
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
value17 = binding(property);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
dispatch = value17.dispatch;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
object2 = {};
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
object2.type = 'STORE_LISTING_FETCH_SUCCESS';
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
body = value14.body;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
object2.storeListing = body;
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
try {
Reflect.apply(dispatch, value17, [object2]);
} catch (error) {
binding = env2_1;
binding7 = env2_2;
value = binding(binding7[4]);
value.dispatch({type: 'SKU_FETCH_FAIL', skuId: a1});
value = binding(binding7[6]);
value18 = 'Failed to fetch SKU ' + a1;
prototype = value.prototype;
value19 = Object.create(prototype, {constructor: {value: value}});
value = new value();
value = value instanceof Object ? value : value19;
throw value;
}
}
}
}
}
}
function _fetchTestSKUsForApplication() { // fn#60436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:1341, offset: 0x0170340a, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun60438).apply(this, arguments);
async function _fun60438(a0) { // fn#60438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:1420, offset: 0x0170344c, size: 245 bytes, params: 2, frame: 18
var value6;
var httpGetWithCountryCodeQuery;
var object;
var value7;
var body;
let value = a1;
if (false) {
return undefined;
}
const r2 = !(value !== undefined) || value;
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_0;
const value5 = binding(env2_2[7]);
if (value5.isTestModeForApplication(a0)) {
binding = env2_0;
value6 = binding(env2_2[5]);
httpGetWithCountryCodeQuery = value6.httpGetWithCountryCodeQuery;
object = {};
binding = env2_7;
object.url = binding.APPLICATION_SKUS(a0);
object.rejectWithError = false;
await Reflect.apply(httpGetWithCountryCodeQuery, value6, [object]);
value7 = undefined;
if (false) {
return value7;
}
body = value7.body;
binding = env2_1;
binding(env2_2[4]).dispatch({type: 'SKUS_FETCH_SUCCESS', skus: body});
} else {
if (r2) {
throw new global.Error('this should only be used in test mode');
}
value6 = env2_0(env2_2[5]);
httpGetWithCountryCodeQuery = value6.httpGetWithCountryCodeQuery;
object = {};
object.url = env2_7.APPLICATION_SKUS(a0);
object.rejectWithError = false;
await Reflect.apply(httpGetWithCountryCodeQuery, value6, [object]);
value7 = undefined;
if (false) {
return value7;
}
body = value7.body;
value = env2_1(env2_2[4]);
value.dispatch({type: 'SKUS_FETCH_SUCCESS', skus: body});
}
return body;
}
}
function _previewPurchaseSku() { // fn#60439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:1729, offset: 0x01703541, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun60441).apply(this, arguments);
async function _fun60441({applicationId, skuId, paymentSourceId, isGift, currency}) { // fn#60441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:1790, offset: 0x01703583, size: 474 bytes, params: 2, frame: 22
var r5;
var binding2;
var property;
var value6;
var httpGetWithCountryCodeQuery;
var object;
var STORE_SKU_PURCHASE;
var value7;
var value8;
var value9;
var value10;
var body;
var error;
var BillingError;
var prototype;
var value11;
var billingError;
var value12;
var code;
var ErrorCodes;
var BILLING_BUNDLE_ALREADY_PURCHASED;
var BILLING_BUNDLE_PARTIALLY_OWNED;
var INVALID_BILLING_ADDRESS;
if (false) {
return undefined;
}
await undefined;
if (false) {
return undefined;
}
const object2 = {payment_source_id: paymentSourceId, gift: isGift, currency: currency};
value = environment.__proto__.__proto__;
let binding = env2_0;
const value4 = binding(env2_2[7]);
if (value4.isTestModeForApplication(applicationId)) {
object2.test_mode = true;
}
const promotionIdOverride = env2_4.getPromotionIdOverride();
if (promotionIdOverride != null) {
object2.promotion_id_override = promotionIdOverride;
}
try {
binding = env2_0;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
property = binding2[5];
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
value6 = binding(property);
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
httpGetWithCountryCodeQuery = value6.httpGetWithCountryCodeQuery;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
object = {};
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
binding = env2_7;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
STORE_SKU_PURCHASE = binding.STORE_SKU_PURCHASE;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
value7 = Reflect.apply(STORE_SKU_PURCHASE, binding, [skuId]);
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
object.url = value7;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
object.query = object2;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
object.oldFormErrors = true;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
object.rejectWithError = false;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
try {
value8 = Reflect.apply(httpGetWithCountryCodeQuery, value6, [object]);
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
await value8;
try {
value9 = undefined;
value10 = false;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
if (value10) {
return value9;
}
try {
body = value9.body;
} catch (error) {
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r5 = error;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code === ErrorCodes.INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value11 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value12 = billingError instanceof Object ? billingError : value11;
r5 = value12;
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_ALREADY_PURCHASED = ErrorCodes.BILLING_BUNDLE_ALREADY_PURCHASED;
if (code === BILLING_BUNDLE_ALREADY_PURCHASED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
BILLING_BUNDLE_PARTIALLY_OWNED = ErrorCodes.BILLING_BUNDLE_PARTIALLY_OWNED;
if (code === BILLING_BUNDLE_PARTIALLY_OWNED) {
throw r5;
}
code = r5.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
INVALID_BILLING_ADDRESS = ErrorCodes.INVALID_BILLING_ADDRESS;
if (code === INVALID_BILLING_ADDRESS) {
throw r5;
}
return null;
}
return body;
}
}
function _grantChannelBranchEntitlement() { // fn#60442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:2476, offset: 0x0170375d, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun60444).apply(this, arguments);
function* _fun60444(a0, a1, a2) { // fn#60444, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:2559, offset: 0x01703796, size: 334 bytes, params: 4, frame: 21
var binding2;
var property;
var value4;
var HTTP;
var post;
var CHANNEL_ENTITLEMENT_GRANT;
var value5;
var value6;
var value7;
var value8;
var binding3;
var value9;
var body;
var items2;
var error;
var binding4;
var BillingError;
var prototype;
var value10;
var billingError;
var value11;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
binding(env2_2[4]).dispatch({type: 'SKU_PURCHASE_START', applicationId: a0, skuId: a2});
try {
binding = env2_0;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
property = binding2[11];
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
value4 = binding(property);
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
HTTP = value4.HTTP;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
post = HTTP.post;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
binding = env2_7;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
CHANNEL_ENTITLEMENT_GRANT = binding.CHANNEL_ENTITLEMENT_GRANT;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
value5 = Reflect.apply(CHANNEL_ENTITLEMENT_GRANT, binding, [a1]);
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
object.url = value5;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
value6 = Reflect.apply(post, HTTP, [object]);
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
if (value8) {
return value7;
}
try {
binding = env2_1;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
property = binding3[4];
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
value9 = binding(property);
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
dispatch = value9.dispatch;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
object = {};
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
object.type = 'SKU_PURCHASE_SUCCESS';
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
object.skuId = a2;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
body = value7.body;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
object.entitlements = body;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
items2 = [];
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
object.libraryApplications = items2;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
Reflect.apply(dispatch, value9, [object]);
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
try {
body = value7.body;
} catch (error) {
binding = env2_0;
binding4 = env2_2;
BillingError = binding(binding4[9]).BillingError;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value11 = billingError instanceof Object ? billingError : value10;
binding = env2_1;
value = binding(binding4[4]);
value.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a2, error: value11});
throw value11;
}
return body;
}
}
function _orderSKU() { // fn#60445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:3042, offset: 0x017038e4, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun60447).apply(this, arguments);
function* _fun60447(a0, a1, a2, a3, a4) { // fn#60447, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:3083, offset: 0x0170391d, size: 490 bytes, params: 6, frame: 22
var object7;
var object;
var items2;
var object2;
var object3;
var object4;
var object5;
var recipient_id;
var gift_style;
var emoji_id;
var emoji_name;
var sound_id;
var reward_sku_ids;
var custom_message;
var binding2;
var property;
var value4;
var HTTP;
var post;
var object6;
var ORDER_CREATE;
var value5;
var value6;
var value7;
var body;
var id;
var binding3;
var value8;
var error;
var binding4;
var value9;
var BillingError;
var prototype;
var value10;
var billingError;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
binding(env2_2[4]).dispatch({type: 'ORDER_CREATE_START'});
try {
object7 = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object = {'sku_id': null, 'quantity': 1, 'purchase_type': 1};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object.sku_id = a0;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
items2 = [];
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
items2[0] = object;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object7.order_line_items = items2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object2 = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object2.payment_source_id = a1;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object7.billing_facet = object2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object3 = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object3.request_gateway_country_code = a2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object7.location_facet = object3;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
if (a3) {
try {
object4 = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object4.is_gift = true;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object5 = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
recipient_id = a4.recipient_id;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object5.recipient_id = recipient_id;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
gift_style = a4.gift_style;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object5.gift_style = gift_style;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
emoji_id = a4.emoji_id;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object5.emoji_id = emoji_id;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
emoji_name = a4.emoji_name;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object5.emoji_name = emoji_name;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
sound_id = a4.sound_id;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object5.sound_id = sound_id;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
reward_sku_ids = a4.reward_sku_ids;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object5.reward_sku_ids = reward_sku_ids;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
custom_message = a4.custom_message;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object5.custom_message_contents = custom_message;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object4.gift_customization = object5;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object7.gifting_facet = object4;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
property = binding2[11];
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
value4 = binding(property);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
HTTP = value4.HTTP;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
post = HTTP.post;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object6 = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
binding = env2_7;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
ORDER_CREATE = binding.ORDER_CREATE;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object6.url = ORDER_CREATE;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object6.body = object7;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object6.rejectWithError = false;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
value5 = Reflect.apply(post, HTTP, [object6]);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
if (value7) {
return value6;
}
try {
body = value6.body;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
id = body.id;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
property = binding3[4];
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
value8 = binding(property);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
dispatch = value8.dispatch;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object7 = {};
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object7.type = 'ORDER_CREATE_SUCCESS';
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object7.orderId = id;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
object7.order = body;
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
try {
Reflect.apply(dispatch, value8, [object7]);
} catch (error) {
binding = env2_1;
binding4 = env2_2;
value9 = binding(binding4[4]);
value9.dispatch({type: 'ORDER_CREATE_FAIL'});
binding = env2_0;
BillingError = binding(binding4[9]).BillingError;
value = 'Failed to create order: ' + error;
prototype = BillingError.prototype;
value10 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError(value);
value = billingError instanceof Object ? billingError : value10;
throw value;
}
return id;
}
}
function _purchaseSKU() { // fn#60448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:3862, offset: 0x01703b07, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun60450).apply(this, arguments);
function* _fun60450(a0, a1, a2) { // fn#60450, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:3909, offset: 0x01703b40, size: 1426 bytes, params: 4, frame: 39
var environment;
var r24;
var r17;
var r9;
var r4;
var value;
var value2;
var object;
var paymentSource;
var expectedAmount;
var expectedCurrency;
var analyticsLoadId;
var isGift;
var giftInfoOptions;
var subscriptionPlanId;
var loadId;
var countryCode;
var orderId;
var binding;
var binding2;
var value3;
var wait;
var value4;
var isTestModeForApplication;
var isTestModeForApplication2;
var binding3;
var property;
var value5;
var createGatewayCheckoutContext;
var gatewayCheckoutContext;
var value6;
var value7;
var getPromotionIdOverride;
var value8;
var value9;
var value10;
var id;
var binding4;
var value11;
var createPaymentSourceToken;
var paymentSourceToken;
var value12;
var value13;
var has;
var type;
var value14;
var binding5;
var value15;
var popupBridgeState;
var value16;
var value17;
var value18;
var binding6;
var value19;
var getAPIBaseURL;
var value20;
var BILLING_POPUP_BRIDGE_CALLBACK_REDIRECT_PREFIX;
var value21;
var value22;
var value23;
var value24;
var value25;
var value26;
var value27;
var binding7;
var value28;
var getPurchaseToken;
var value29;
var value30;
var binding8;
var value31;
var HTTP;
var post;
var object2;
var STORE_SKU_PURCHASE;
var value32;
var value33;
var value34;
var value35;
var binding9;
var value36;
var dispatch;
var body;
var library_applications;
var value37;
var items2;
var filter;
var binding10;
var value38;
var isNotNullish;
var value39;
var entitlements;
var applied_user_discounts;
var gift_code;
var error;
var BillingError;
var prototype;
var value40;
var billingError;
var value41;
var code;
var ErrorCodes;
var CONFIRMATION_REQUIRED;
var value42;
var value44;
var binding11;
var value45;
var payment_id;
var dispatchConfirmationError;
exceptionSkip187: while (true) {
exceptionLanding187: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
var env0_0 = a0;
var env0_1 = a1;
object = {};
value = environment.__proto__.__proto__;
copyDataProperties(object, env2_8, undefined);
copyDataProperties(object, a2, undefined);
paymentSource = object.paymentSource;
expectedAmount = object.expectedAmount;
expectedCurrency = object.expectedCurrency;
analyticsLoadId = object.analyticsLoadId;
isGift = object.isGift;
giftInfoOptions = object.giftInfoOptions;
subscriptionPlanId = object.subscriptionPlanId;
loadId = object.loadId;
countryCode = object.countryCode;
orderId = object.orderId;
binding = env2_1;
binding2 = env2_2;
value3 = binding(binding2[4]);
wait = value3.wait;
Reflect.apply(wait, value3, [_fun60451]);
binding = env2_0;
value4 = binding(binding2[7]);
isTestModeForApplication = value4.isTestModeForApplication;
isTestModeForApplication2 = Reflect.apply(isTestModeForApplication, value4, [a0]);
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.gift = isGift;
} catch (error) {
break exceptionLanding187;
}
try {
object.sku_subscription_plan_id = subscriptionPlanId;
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding3[12];
} catch (error) {
break exceptionLanding187;
}
try {
value5 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
createGatewayCheckoutContext = value5.createGatewayCheckoutContext;
} catch (error) {
break exceptionLanding187;
}
try {
gatewayCheckoutContext = Reflect.apply(createGatewayCheckoutContext, value5, [paymentSource]);
} catch (error) {
break exceptionLanding187;
}
yield gatewayCheckoutContext;
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding187;
}
if (value7) {
return value6;
}
try {
object.gateway_checkout_context = value6;
} catch (error) {
break exceptionLanding187;
}
try {
object.load_id = loadId;
} catch (error) {
break exceptionLanding187;
}
try {
object.gift_info_options = giftInfoOptions;
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_4;
} catch (error) {
break exceptionLanding187;
}
try {
getPromotionIdOverride = binding.getPromotionIdOverride;
} catch (error) {
break exceptionLanding187;
}
try {
value8 = Reflect.apply(getPromotionIdOverride, binding, []);
} catch (error) {
break exceptionLanding187;
}
try {
value9 = value8 == null;
} catch (error) {
break exceptionLanding187;
}
if (!value9) {
try {
object.promotion_id_override = value8;
} catch (error) {
break exceptionLanding187;
}
}
if (isTestModeForApplication2) {
try {
object.test_mode = true;
} catch (error) {
break exceptionLanding187;
}
try {
value26 = expectedAmount == null;
} catch (error) {
break exceptionLanding187;
}
if (!value26) {
try {
object.expected_amount = expectedAmount;
} catch (error) {
break exceptionLanding187;
}
}
try {
value27 = expectedCurrency == null;
} catch (error) {
break exceptionLanding187;
}
if (!value27) {
try {
object.expected_currency = expectedCurrency;
} catch (error) {
break exceptionLanding187;
}
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding7 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding7[14];
} catch (error) {
break exceptionLanding187;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
getPurchaseToken = value28.getPurchaseToken;
} catch (error) {
break exceptionLanding187;
}
try {
value29 = Reflect.apply(getPurchaseToken, value28, []);
} catch (error) {
break exceptionLanding187;
}
try {
object.purchase_token = value29;
} catch (error) {
break exceptionLanding187;
}
try {
value30 = orderId == null;
} catch (error) {
break exceptionLanding187;
}
if (!value30) {
try {
object.order_id = orderId;
} catch (error) {
break exceptionLanding187;
}
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding8 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding8[11];
} catch (error) {
break exceptionLanding187;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
HTTP = value31.HTTP;
} catch (error) {
break exceptionLanding187;
}
try {
post = HTTP.post;
} catch (error) {
break exceptionLanding187;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_7;
} catch (error) {
break exceptionLanding187;
}
try {
STORE_SKU_PURCHASE = binding.STORE_SKU_PURCHASE;
} catch (error) {
break exceptionLanding187;
}
try {
value32 = Reflect.apply(STORE_SKU_PURCHASE, binding, [a1]);
} catch (error) {
break exceptionLanding187;
}
try {
object2.url = value32;
} catch (error) {
break exceptionLanding187;
}
try {
object2.body = object;
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.load_id = analyticsLoadId;
} catch (error) {
break exceptionLanding187;
}
try {
object2.context = object;
} catch (error) {
break exceptionLanding187;
}
try {
object2.oldFormErrors = true;
} catch (error) {
break exceptionLanding187;
}
try {
object2.rejectWithError = false;
} catch (error) {
break exceptionLanding187;
}
try {
value33 = Reflect.apply(post, HTTP, [object2]);
} catch (error) {
break exceptionLanding187;
}
yield value33;
try {
value34 = undefined;
value35 = false;
} catch (error) {
break exceptionLanding187;
}
if (value35) {
return value34;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding187;
}
try {
binding9 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding9[4];
} catch (error) {
break exceptionLanding187;
}
try {
value36 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
dispatch = value36.dispatch;
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.type = 'SKU_PURCHASE_SUCCESS';
} catch (error) {
break exceptionLanding187;
}
try {
object.skuId = a1;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
library_applications = body.library_applications;
} catch (error) {
break exceptionLanding187;
}
try {
value37 = library_applications != null;
} catch (error) {
break exceptionLanding187;
}
if (value37) {
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
library_applications = body.library_applications;
} catch (error) {
break exceptionLanding187;
}
try {
filter = library_applications.filter;
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding10 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding10[15];
} catch (error) {
break exceptionLanding187;
}
try {
value38 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
isNotNullish = value38.isNotNullish;
} catch (error) {
break exceptionLanding187;
}
try {
value39 = Reflect.apply(filter, library_applications, [isNotNullish]);
} catch (error) {
break exceptionLanding187;
}
r17 = value39;
} else {
try {
items2 = [];
} catch (error) {
break exceptionLanding187;
}
r17 = items2;
}
try {
object.libraryApplications = r17;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
entitlements = body.entitlements;
} catch (error) {
break exceptionLanding187;
}
try {
object.entitlements = entitlements;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
applied_user_discounts = body.applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object.appliedUserDiscounts = applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
gift_code = body.gift_code;
} catch (error) {
break exceptionLanding187;
}
try {
object.giftCode = gift_code;
} catch (error) {
break exceptionLanding187;
}
try {
Reflect.apply(dispatch, value36, [object]);
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
copyDataProperties(object, body, undefined);
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
applied_user_discounts = body.applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object['appliedUserDiscounts'] = applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object['redirectConfirmation'] = false;
} catch (error) {
break exceptionLanding187;
}
return object;
}
try {
value10 = paymentSource == null;
} catch (error) {
break exceptionLanding187;
}
if (value10) {
try {
value25 = countryCode == null;
} catch (error) {
break exceptionLanding187;
}
if (!value25) {
try {
object.country_code = countryCode;
} catch (error) {
break exceptionLanding187;
}
}
try {
value26 = expectedAmount == null;
} catch (error) {
break exceptionLanding187;
}
if (!value26) {
try {
object.expected_amount = expectedAmount;
} catch (error) {
break exceptionLanding187;
}
}
try {
value27 = expectedCurrency == null;
} catch (error) {
break exceptionLanding187;
}
if (!value27) {
try {
object.expected_currency = expectedCurrency;
} catch (error) {
break exceptionLanding187;
}
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding7 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding7[14];
} catch (error) {
break exceptionLanding187;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
getPurchaseToken = value28.getPurchaseToken;
} catch (error) {
break exceptionLanding187;
}
try {
value29 = Reflect.apply(getPurchaseToken, value28, []);
} catch (error) {
break exceptionLanding187;
}
try {
object.purchase_token = value29;
} catch (error) {
break exceptionLanding187;
}
try {
value30 = orderId == null;
} catch (error) {
break exceptionLanding187;
}
if (!value30) {
try {
object.order_id = orderId;
} catch (error) {
break exceptionLanding187;
}
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding8 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding8[11];
} catch (error) {
break exceptionLanding187;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
HTTP = value31.HTTP;
} catch (error) {
break exceptionLanding187;
}
try {
post = HTTP.post;
} catch (error) {
break exceptionLanding187;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_7;
} catch (error) {
break exceptionLanding187;
}
try {
STORE_SKU_PURCHASE = binding.STORE_SKU_PURCHASE;
} catch (error) {
break exceptionLanding187;
}
try {
value32 = Reflect.apply(STORE_SKU_PURCHASE, binding, [a1]);
} catch (error) {
break exceptionLanding187;
}
try {
object2.url = value32;
} catch (error) {
break exceptionLanding187;
}
try {
object2.body = object;
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.load_id = analyticsLoadId;
} catch (error) {
break exceptionLanding187;
}
try {
object2.context = object;
} catch (error) {
break exceptionLanding187;
}
try {
object2.oldFormErrors = true;
} catch (error) {
break exceptionLanding187;
}
try {
object2.rejectWithError = false;
} catch (error) {
break exceptionLanding187;
}
try {
value33 = Reflect.apply(post, HTTP, [object2]);
} catch (error) {
break exceptionLanding187;
}
yield value33;
try {
value34 = undefined;
value35 = false;
} catch (error) {
break exceptionLanding187;
}
if (value35) {
return value34;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding187;
}
try {
binding9 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding9[4];
} catch (error) {
break exceptionLanding187;
}
try {
value36 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
dispatch = value36.dispatch;
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.type = 'SKU_PURCHASE_SUCCESS';
} catch (error) {
break exceptionLanding187;
}
try {
object.skuId = a1;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
library_applications = body.library_applications;
} catch (error) {
break exceptionLanding187;
}
try {
value37 = library_applications != null;
} catch (error) {
break exceptionLanding187;
}
if (value37) {
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
library_applications = body.library_applications;
} catch (error) {
break exceptionLanding187;
}
try {
filter = library_applications.filter;
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding10 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding10[15];
} catch (error) {
break exceptionLanding187;
}
try {
value38 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
isNotNullish = value38.isNotNullish;
} catch (error) {
break exceptionLanding187;
}
try {
value39 = Reflect.apply(filter, library_applications, [isNotNullish]);
} catch (error) {
break exceptionLanding187;
}
r17 = value39;
} else {
try {
items2 = [];
} catch (error) {
break exceptionLanding187;
}
r17 = items2;
}
try {
object.libraryApplications = r17;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
entitlements = body.entitlements;
} catch (error) {
break exceptionLanding187;
}
try {
object.entitlements = entitlements;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
applied_user_discounts = body.applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object.appliedUserDiscounts = applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
gift_code = body.gift_code;
} catch (error) {
break exceptionLanding187;
}
try {
object.giftCode = gift_code;
} catch (error) {
break exceptionLanding187;
}
try {
Reflect.apply(dispatch, value36, [object]);
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
copyDataProperties(object, body, undefined);
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
applied_user_discounts = body.applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object['appliedUserDiscounts'] = applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object['redirectConfirmation'] = false;
} catch (error) {
break exceptionLanding187;
}
return object;
}
try {
id = paymentSource.id;
} catch (error) {
break exceptionLanding187;
}
try {
object.payment_source_id = id;
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding4[13];
} catch (error) {
break exceptionLanding187;
}
try {
value11 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
createPaymentSourceToken = value11.createPaymentSourceToken;
} catch (error) {
break exceptionLanding187;
}
try {
paymentSourceToken = Reflect.apply(createPaymentSourceToken, value11, [paymentSource]);
} catch (error) {
break exceptionLanding187;
}
yield paymentSourceToken;
try {
value12 = undefined;
value13 = false;
} catch (error) {
break exceptionLanding187;
}
if (value13) {
return value12;
}
try {
object.payment_source_token = value12;
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_6;
} catch (error) {
break exceptionLanding187;
}
try {
has = binding.has;
} catch (error) {
break exceptionLanding187;
}
try {
type = paymentSource.type;
} catch (error) {
break exceptionLanding187;
}
try {
value14 = Reflect.apply(has, binding, [type]);
} catch (error) {
break exceptionLanding187;
}
if (value14) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding5 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding5[13];
} catch (error) {
break exceptionLanding187;
}
try {
value15 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
popupBridgeState = value15.popupBridgeState;
} catch (error) {
break exceptionLanding187;
}
try {
type = paymentSource.type;
} catch (error) {
break exceptionLanding187;
}
try {
value16 = Reflect.apply(popupBridgeState, value15, [type]);
} catch (error) {
break exceptionLanding187;
}
yield value16;
try {
value17 = undefined;
value18 = false;
} catch (error) {
break exceptionLanding187;
}
if (value18) {
return value17;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding6 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding6[11];
} catch (error) {
break exceptionLanding187;
}
try {
value19 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
getAPIBaseURL = value19.getAPIBaseURL;
} catch (error) {
break exceptionLanding187;
}
try {
value20 = Reflect.apply(getAPIBaseURL, value19, []);
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_7;
} catch (error) {
break exceptionLanding187;
}
try {
BILLING_POPUP_BRIDGE_CALLBACK_REDIRECT_PREFIX = binding.BILLING_POPUP_BRIDGE_CALLBACK_REDIRECT_PREFIX;
} catch (error) {
break exceptionLanding187;
}
try {
type = paymentSource.type;
} catch (error) {
break exceptionLanding187;
}
try {
value21 = value17 != null;
} catch (error) {
break exceptionLanding187;
}
value22 = '';
r24 = value21 ? value17 : value22;
try {
value23 = Reflect.apply(BILLING_POPUP_BRIDGE_CALLBACK_REDIRECT_PREFIX, binding, [type, r24,
'success']);
} catch (error) {
break exceptionLanding187;
}
try {
value24 = value20 + value23;
} catch (error) {
break exceptionLanding187;
}
try {
object.return_url = value24;
} catch (error) {
break exceptionLanding187;
}
try {
value25 = countryCode == null;
} catch (error) {
break exceptionLanding187;
}
if (!value25) {
try {
object.country_code = countryCode;
} catch (error) {
break exceptionLanding187;
}
}
try {
value26 = expectedAmount == null;
} catch (error) {
break exceptionLanding187;
}
if (!value26) {
try {
object.expected_amount = expectedAmount;
} catch (error) {
break exceptionLanding187;
}
}
try {
value27 = expectedCurrency == null;
} catch (error) {
break exceptionLanding187;
}
if (!value27) {
try {
object.expected_currency = expectedCurrency;
} catch (error) {
break exceptionLanding187;
}
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding7 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding7[14];
} catch (error) {
break exceptionLanding187;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
getPurchaseToken = value28.getPurchaseToken;
} catch (error) {
break exceptionLanding187;
}
try {
value29 = Reflect.apply(getPurchaseToken, value28, []);
} catch (error) {
break exceptionLanding187;
}
try {
object.purchase_token = value29;
} catch (error) {
break exceptionLanding187;
}
try {
value30 = orderId == null;
} catch (error) {
break exceptionLanding187;
}
if (!value30) {
try {
object.order_id = orderId;
} catch (error) {
break exceptionLanding187;
}
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding8 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding8[11];
} catch (error) {
break exceptionLanding187;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
HTTP = value31.HTTP;
} catch (error) {
break exceptionLanding187;
}
try {
post = HTTP.post;
} catch (error) {
break exceptionLanding187;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_7;
} catch (error) {
break exceptionLanding187;
}
try {
STORE_SKU_PURCHASE = binding.STORE_SKU_PURCHASE;
} catch (error) {
break exceptionLanding187;
}
try {
value32 = Reflect.apply(STORE_SKU_PURCHASE, binding, [a1]);
} catch (error) {
break exceptionLanding187;
}
try {
object2.url = value32;
} catch (error) {
break exceptionLanding187;
}
try {
object2.body = object;
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.load_id = analyticsLoadId;
} catch (error) {
break exceptionLanding187;
}
try {
object2.context = object;
} catch (error) {
break exceptionLanding187;
}
try {
object2.oldFormErrors = true;
} catch (error) {
break exceptionLanding187;
}
try {
object2.rejectWithError = false;
} catch (error) {
break exceptionLanding187;
}
try {
value33 = Reflect.apply(post, HTTP, [object2]);
} catch (error) {
break exceptionLanding187;
}
yield value33;
try {
value34 = undefined;
value35 = false;
} catch (error) {
break exceptionLanding187;
}
if (value35) {
return value34;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding187;
}
try {
binding9 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding9[4];
} catch (error) {
break exceptionLanding187;
}
try {
value36 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
dispatch = value36.dispatch;
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.type = 'SKU_PURCHASE_SUCCESS';
} catch (error) {
break exceptionLanding187;
}
try {
object.skuId = a1;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
library_applications = body.library_applications;
} catch (error) {
break exceptionLanding187;
}
try {
value37 = library_applications != null;
} catch (error) {
break exceptionLanding187;
}
if (value37) {
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
library_applications = body.library_applications;
} catch (error) {
break exceptionLanding187;
}
try {
filter = library_applications.filter;
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding10 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding10[15];
} catch (error) {
break exceptionLanding187;
}
try {
value38 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
isNotNullish = value38.isNotNullish;
} catch (error) {
break exceptionLanding187;
}
try {
value39 = Reflect.apply(filter, library_applications, [isNotNullish]);
} catch (error) {
break exceptionLanding187;
}
r17 = value39;
} else {
try {
items2 = [];
} catch (error) {
break exceptionLanding187;
}
r17 = items2;
}
try {
object.libraryApplications = r17;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
entitlements = body.entitlements;
} catch (error) {
break exceptionLanding187;
}
try {
object.entitlements = entitlements;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
applied_user_discounts = body.applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object.appliedUserDiscounts = applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
gift_code = body.gift_code;
} catch (error) {
break exceptionLanding187;
}
try {
object.giftCode = gift_code;
} catch (error) {
break exceptionLanding187;
}
try {
Reflect.apply(dispatch, value36, [object]);
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
copyDataProperties(object, body, undefined);
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
applied_user_discounts = body.applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object['appliedUserDiscounts'] = applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object['redirectConfirmation'] = false;
} catch (error) {
break exceptionLanding187;
}
return object;
}
try {
value25 = countryCode == null;
} catch (error) {
break exceptionLanding187;
}
if (!value25) {
try {
object.country_code = countryCode;
} catch (error) {
break exceptionLanding187;
}
}
try {
value26 = expectedAmount == null;
} catch (error) {
break exceptionLanding187;
}
if (!value26) {
try {
object.expected_amount = expectedAmount;
} catch (error) {
break exceptionLanding187;
}
}
try {
value27 = expectedCurrency == null;
} catch (error) {
break exceptionLanding187;
}
if (!value27) {
try {
object.expected_currency = expectedCurrency;
} catch (error) {
break exceptionLanding187;
}
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding7 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding7[14];
} catch (error) {
break exceptionLanding187;
}
try {
value28 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
getPurchaseToken = value28.getPurchaseToken;
} catch (error) {
break exceptionLanding187;
}
try {
value29 = Reflect.apply(getPurchaseToken, value28, []);
} catch (error) {
break exceptionLanding187;
}
try {
object.purchase_token = value29;
} catch (error) {
break exceptionLanding187;
}
try {
value30 = orderId == null;
} catch (error) {
break exceptionLanding187;
}
if (!value30) {
try {
object.order_id = orderId;
} catch (error) {
break exceptionLanding187;
}
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding8 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding8[11];
} catch (error) {
break exceptionLanding187;
}
try {
value31 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
HTTP = value31.HTTP;
} catch (error) {
break exceptionLanding187;
}
try {
post = HTTP.post;
} catch (error) {
break exceptionLanding187;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_7;
} catch (error) {
break exceptionLanding187;
}
try {
STORE_SKU_PURCHASE = binding.STORE_SKU_PURCHASE;
} catch (error) {
break exceptionLanding187;
}
try {
value32 = Reflect.apply(STORE_SKU_PURCHASE, binding, [a1]);
} catch (error) {
break exceptionLanding187;
}
try {
object2.url = value32;
} catch (error) {
break exceptionLanding187;
}
try {
object2.body = object;
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.load_id = analyticsLoadId;
} catch (error) {
break exceptionLanding187;
}
try {
object2.context = object;
} catch (error) {
break exceptionLanding187;
}
try {
object2.oldFormErrors = true;
} catch (error) {
break exceptionLanding187;
}
try {
object2.rejectWithError = false;
} catch (error) {
break exceptionLanding187;
}
try {
value33 = Reflect.apply(post, HTTP, [object2]);
} catch (error) {
break exceptionLanding187;
}
yield value33;
try {
value34 = undefined;
value35 = false;
} catch (error) {
break exceptionLanding187;
}
if (value35) {
return value34;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding187;
}
try {
binding9 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding9[4];
} catch (error) {
break exceptionLanding187;
}
try {
value36 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
dispatch = value36.dispatch;
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
object.type = 'SKU_PURCHASE_SUCCESS';
} catch (error) {
break exceptionLanding187;
}
try {
object.skuId = a1;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
library_applications = body.library_applications;
} catch (error) {
break exceptionLanding187;
}
try {
value37 = library_applications != null;
} catch (error) {
break exceptionLanding187;
}
if (value37) {
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
library_applications = body.library_applications;
} catch (error) {
break exceptionLanding187;
}
try {
filter = library_applications.filter;
} catch (error) {
break exceptionLanding187;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding187;
}
try {
binding10 = env2_2;
} catch (error) {
break exceptionLanding187;
}
try {
property = binding10[15];
} catch (error) {
break exceptionLanding187;
}
try {
value38 = binding(property);
} catch (error) {
break exceptionLanding187;
}
try {
isNotNullish = value38.isNotNullish;
} catch (error) {
break exceptionLanding187;
}
try {
value39 = Reflect.apply(filter, library_applications, [isNotNullish]);
} catch (error) {
break exceptionLanding187;
}
r17 = value39;
} else {
try {
items2 = [];
} catch (error) {
break exceptionLanding187;
}
r17 = items2;
}
try {
object.libraryApplications = r17;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
entitlements = body.entitlements;
} catch (error) {
break exceptionLanding187;
}
try {
object.entitlements = entitlements;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
applied_user_discounts = body.applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object.appliedUserDiscounts = applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
gift_code = body.gift_code;
} catch (error) {
break exceptionLanding187;
}
try {
object.giftCode = gift_code;
} catch (error) {
break exceptionLanding187;
}
try {
Reflect.apply(dispatch, value36, [object]);
} catch (error) {
break exceptionLanding187;
}
try {
object = {};
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
copyDataProperties(object, body, undefined);
} catch (error) {
break exceptionLanding187;
}
try {
body = value34.body;
} catch (error) {
break exceptionLanding187;
}
try {
applied_user_discounts = body.applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object['appliedUserDiscounts'] = applied_user_discounts;
} catch (error) {
break exceptionLanding187;
}
try {
object['redirectConfirmation'] = false;
} catch (error) {
break exceptionLanding187;
}
return object;
break exceptionSkip187;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
r9 = error;
code = r9.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
CONFIRMATION_REQUIRED = ErrorCodes.CONFIRMATION_REQUIRED;
value42 = code !== CONFIRMATION_REQUIRED;
if (value42) {
code = r9.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code !== ErrorCodes.AUTHENTICATION_REQUIRED) {
binding = env2_1;
binding11 = env2_2;
value45 = binding(binding11[4]);
value45.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a1, error: r9});
code = r9.code;
binding = env2_0;
if (code !== binding(binding11[10]).ErrorCodes.CONFIRMATION_REQUIRED) {
throw r9;
}
payment_id = error.body.payment_id;
binding = env2_0;
value = binding(env2_2[13]);
if (payment_id) {
return value.handleConfirmation(error.body, paymentSource);
}
throw value.dispatchConfirmationError('payment id cannot be null on redirected confirmations.');
}
binding = env2_1;
value44 = binding(env2_2[4]);
dispatch = value44.dispatch;
Reflect.apply(dispatch, value44, [{type: 'SKU_PURCHASE_AWAIT_CONFIRMATION', skuId: a1,
isGift: isGift}]);
binding = env2_1;
binding11 = env2_2;
value45 = binding(binding11[4]);
dispatch = value45.dispatch;
Reflect.apply(dispatch, value45, [{type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a1,
error: r9}]);
code = r9.code;
binding = env2_0;
ErrorCodes = binding(binding11[10]).ErrorCodes;
if (code !== ErrorCodes.CONFIRMATION_REQUIRED) {
throw r9;
}
payment_id = error.body.payment_id;
binding = env2_0;
value = binding(env2_2[13]);
if (payment_id) {
return value.handleConfirmation(error.body, paymentSource);
}
throw value.dispatchConfirmationError('payment id cannot be null on redirected confirmations.');
}
if (value42) {
binding = env2_1;
binding11 = env2_2;
value45 = binding(binding11[4]);
value45.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a1, error: r9});
code = r9.code;
binding = env2_0;
if (code !== binding(binding11[10]).ErrorCodes.CONFIRMATION_REQUIRED) {
throw r9;
}
payment_id = error.body.payment_id;
binding = env2_0;
value = binding(env2_2[13]);
if (payment_id) {
return value.handleConfirmation(error.body, paymentSource);
}
throw value.dispatchConfirmationError('payment id cannot be null on redirected confirmations.');
}
binding = env2_1;
value44 = binding(env2_2[4]);
dispatch = value44.dispatch;
Reflect.apply(dispatch, value44, [{type: 'SKU_PURCHASE_AWAIT_CONFIRMATION', skuId: a1, isGift: isGift}]);
binding = env2_1;
binding11 = env2_2;
value45 = binding(binding11[4]);
dispatch = value45.dispatch;
Reflect.apply(dispatch, value45, [{type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a1, error: r9}]);
code = r9.code;
binding = env2_0;
ErrorCodes = binding(binding11[10]).ErrorCodes;
CONFIRMATION_REQUIRED = ErrorCodes.CONFIRMATION_REQUIRED;
if (code !== CONFIRMATION_REQUIRED) {
throw r9;
}
payment_id = error.body.payment_id;
binding = env2_0;
value = binding(env2_2[13]);
if (payment_id) {
return value.handleConfirmation(error.body, paymentSource);
}
throw value.dispatchConfirmationError('payment id cannot be null on redirected confirmations.');
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value40 = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value41 = billingError instanceof Object ? billingError : value40;
r9 = value41;
code = r9.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
CONFIRMATION_REQUIRED = ErrorCodes.CONFIRMATION_REQUIRED;
value42 = code !== CONFIRMATION_REQUIRED;
if (value42) {
code = r9.code;
binding = env2_0;
ErrorCodes = binding(env2_2[10]).ErrorCodes;
if (code !== ErrorCodes.AUTHENTICATION_REQUIRED) {
binding = env2_1;
binding11 = env2_2;
value45 = binding(binding11[4]);
value45.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a1, error: r9});
code = r9.code;
binding = env2_0;
if (code !== binding(binding11[10]).ErrorCodes.CONFIRMATION_REQUIRED) {
throw r9;
}
payment_id = error.body.payment_id;
binding = env2_0;
value = binding(env2_2[13]);
if (payment_id) {
return value.handleConfirmation(error.body, paymentSource);
}
throw value.dispatchConfirmationError('payment id cannot be null on redirected confirmations.');
}
binding = env2_1;
value44 = binding(env2_2[4]);
dispatch = value44.dispatch;
Reflect.apply(dispatch, value44, [{type: 'SKU_PURCHASE_AWAIT_CONFIRMATION', skuId: a1, isGift: isGift}]);
binding = env2_1;
binding11 = env2_2;
value45 = binding(binding11[4]);
dispatch = value45.dispatch;
Reflect.apply(dispatch, value45, [{type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a1, error: r9}]);
code = r9.code;
binding = env2_0;
ErrorCodes = binding(binding11[10]).ErrorCodes;
if (code !== ErrorCodes.CONFIRMATION_REQUIRED) {
throw r9;
}
payment_id = error.body.payment_id;
binding = env2_0;
value = binding(env2_2[13]);
if (payment_id) {
return value.handleConfirmation(error.body, paymentSource);
}
throw value.dispatchConfirmationError('payment id cannot be null on redirected confirmations.');
}
r4 = value42;
if (r4) {
binding = env2_1;
binding11 = env2_2;
value45 = binding(binding11[4]);
value45.dispatch({type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a1, error: r9});
code = r9.code;
binding = env2_0;
if (code !== binding(binding11[10]).ErrorCodes.CONFIRMATION_REQUIRED) {
throw r9;
}
payment_id = error.body.payment_id;
binding = env2_0;
value = binding(env2_2[13]);
if (payment_id) {
return value.handleConfirmation(error.body, paymentSource);
}
throw value.dispatchConfirmationError('payment id cannot be null on redirected confirmations.');
}
binding = env2_1;
value44 = binding(env2_2[4]);
dispatch = value44.dispatch;
Reflect.apply(dispatch, value44, [{type: 'SKU_PURCHASE_AWAIT_CONFIRMATION', skuId: a1, isGift: isGift}]);
binding = env2_1;
binding11 = env2_2;
value45 = binding(binding11[4]);
dispatch = value45.dispatch;
Reflect.apply(dispatch, value45, [{type: 'SKU_PURCHASE_FAIL', applicationId: a0, skuId: a1, error: r9}]);
code = r9.code;
binding = env2_0;
ErrorCodes = binding(binding11[10]).ErrorCodes;
CONFIRMATION_REQUIRED = ErrorCodes.CONFIRMATION_REQUIRED;
if (code !== CONFIRMATION_REQUIRED) {
throw r9;
}
body = error.body;
payment_id = body.payment_id;
binding = env2_0;
value = binding(env2_2[13]);
if (payment_id) {
return value.handleConfirmation(error.body, paymentSource);
}
dispatchConfirmationError = value.dispatchConfirmationError;
throw Reflect.apply(dispatchConfirmationError, value,
['payment id cannot be null on redirected confirmations.']);
break exceptionSkip187;
}
function _fun60451() { // fn#60451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:4129, offset: 0x017040d2, size: 68 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
env3_1(env3_2[4]).dispatch({type: 'SKU_PURCHASE_START', applicationId: env0_0, skuId: require});
}
}
}
function _resendPaymentVerificationEmail() { // fn#60452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:6026, offset: 0x01704116, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun60454).apply(this, arguments);
function* _fun60454() { // fn#60454, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:6111, offset: 0x0170414f, size: 242 bytes, params: 1, frame: 18
var r1;
var object;
var binding;
var binding2;
var property;
var value3;
var getPurchaseToken;
var value4;
var object2;
var value5;
var HTTP;
var post;
var object3;
var STORE_EMAIL_RESEND_PAYMENT_VERIFICATION;
var value6;
var body;
var error;
var BillingError;
var prototype;
var billingError;
let value = undefined;
if (false) {
return value;
}
try {
object = {};
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
value = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
binding2 = env2_2;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
property = binding2[14];
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
value3 = binding(property);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
getPurchaseToken = value3.getPurchaseToken;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
value4 = Reflect.apply(getPurchaseToken, value3, []);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
object.purchase_token = value4;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
object2 = {};
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
property = binding2[11];
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
value5 = binding(property);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
HTTP = value5.HTTP;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
post = HTTP.post;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
object3 = {};
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
binding = env2_7;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
STORE_EMAIL_RESEND_PAYMENT_VERIFICATION = binding.STORE_EMAIL_RESEND_PAYMENT_VERIFICATION;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
object3.url = STORE_EMAIL_RESEND_PAYMENT_VERIFICATION;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
object3.body = object;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
object3.oldFormErrors = true;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
object3.rejectWithError = false;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
value = Reflect.apply(post, HTTP, [object3]);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
yield value;
try {
value = undefined;
value6 = false;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
if (value6) {
return value;
}
try {
body = value.body;
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
try {
copyDataProperties(object2, body, binding2);
} catch (error) {
value = environment.__proto__.__proto__;
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
if (error instanceof BillingError) {
throw error;
}
binding = env2_0;
BillingError = binding(env2_2[9]).BillingError;
prototype = BillingError.prototype;
value = Object.create(prototype, {constructor: {value: BillingError}});
billingError = new BillingError();
value = billingError instanceof Object ? billingError : value;
r1 = value;
throw r1;
}
return object2;
}
}
function clearPurchaseError() { // fn#60463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:7334, offset: 0x01704241, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'SKU_PURCHASE_CLEAR_ERROR'});
}
function showPurchaseConfirmationStep() { // fn#60464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:7449, offset: 0x01704272, size: 45 bytes, params: 1, frame: 12
(Dispatcher).wait(_fun60465);
function _fun60465() { // fn#60465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:7503, offset: 0x0170429f, size: 49 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'SKU_PURCHASE_SHOW_CONFIRMATION_STEP'});
}
}
function updateSKUPaymentIsGift(a0) { // fn#60466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7678:7599, offset: 0x017042d0, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'SKU_PURCHASE_UPDATE_IS_GIFT',
isGift: a0});
}
}
global.__d(_fun60429, 7500, [5, 7501, 4279, 661, 694, 4141, 3825, 7502, 5179, 4131, 3824, 507, 3817, 4223, 4232,
1360,
2]) /* metro module 7500, dependencies: [5, 7501, 4279, 661, 694, 4141, 3825, 7502, 5179, 4131, 3824, 507, 3817, 4223, 4232, 1360, 2] */;