/* Metro module 10072; source: modules/virtual_currency/VirtualCurrencyActionCreators.tsx; dependencies: [5, 4279, 661, 3, 694, 507, 4131, 7502, 1216, 2] */ function _fun78731(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10258:6, offset: 0x01e32533, size: 250 bytes, params: 8, frame: 20 const env0_0 = require; const closure = function() { return _fetchVirtualCurrencyBalance.apply(this, arguments); }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */; const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints; let value = importDefault(3) /* metro dependency 3: Logger */; value = new value('VirtualCurrencyActionCreators'); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/virtual_currency/VirtualCurrencyActionCreators.tsx'); exports.fetchVirtualCurrencyBalance = closure; exports.redeemVirtualCurrencyForSKU = function() { return _redeemVirtualCurrencyForSKU.apply(this, arguments); }; exports.setBalancePillOverlay = setBalancePillOverlay; } function _fetchVirtualCurrencyBalance() { // fn#78733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10258:281, offset: 0x01e3262d, size: 50 bytes, params: 1, frame: 14 return env0_3(_fun78735).apply(this, arguments); } function _redeemVirtualCurrencyForSKU() { // fn#78737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10258:828, offset: 0x01e327e1, size: 50 bytes, params: 1, frame: 14 return env0_3(_fun78739).apply(this, arguments); } function setBalancePillOverlay(a0) { // fn#78742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10258:2255, offset: 0x01e32b4a, size: 57 bytes, params: 2, frame: 12 return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'VIRTUAL_CURRENCY_SET_BALANCE_PILL_OVERLAY', balancePillOverlay: a0}); } function* _fun78735() { // fn#78735, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10258:360, offset: 0x01e3266a, size: 326 bytes, params: 1, frame: 19 var environment; var r5; var binding2; var property; var value4; var HTTP; var get; var object2; var VIRTUAL_CURRENCY_USER_BALANCE; var value5; var value6; var value7; var body; var balance; var binding3; var value8; var dispatch; var error; var BillingError; var prototype; var value9; var billingError; var value10; if (false) { return undefined; } value = environment.__proto__.__proto__; let binding = env2_1; binding(env2_2[4]).wait(_fun78736); try { binding = env2_0; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { binding2 = env2_2; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { property = binding2[5]; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { value4 = binding(property); } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { HTTP = value4.HTTP; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { get = HTTP.get; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { object2 = {}; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { binding = env2_5; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { VIRTUAL_CURRENCY_USER_BALANCE = binding.VIRTUAL_CURRENCY_USER_BALANCE; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { object2.url = VIRTUAL_CURRENCY_USER_BALANCE; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { object2.rejectWithError = false; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { value5 = Reflect.apply(get, HTTP, [object2]); } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } yield value5; try { value6 = undefined; value7 = false; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } if (value7) { return value6; } try { body = value6.body; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { balance = body.balance; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { binding = env2_1; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { binding3 = env2_2; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { property = binding3[4]; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { value8 = binding(property); } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { dispatch = value8.dispatch; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { object2 = {}; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { object2.type = 'VIRTUAL_CURRENCY_BALANCE_FETCH_SUCCESS'; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { object2.balance = balance; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { Reflect.apply(dispatch, value8, [object2]); } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } try { body = value6.body; } catch (error) { binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r5 = error; value = env2_1(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value9 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value10 = billingError instanceof Object ? billingError : value9; r5 = value10; binding = env2_1; value = binding(env2_2[4]); value.dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL', error: r5}); return undefined; } return body; } async function _fun78739(a0) { // fn#78739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10258:907, offset: 0x01e32827, size: 743 bytes, params: 2, frame: 29 var environment; var shouldRefetchBalance; var applicationId; var r9; var r11; var value; var value2; var skuId; var loadId; var onRedeemStart; var onRedeemSucceed; var onRedeemFail; var value3; var value4; var value5; var value6; var binding; var value7; var wait; var get; var value8; var value9; var value10; var binding2; var property; var value11; var isTestModeForApplication; var isTestModeForApplication2; var object4; var binding3; var value12; var HTTP; var post; var object5; var VIRTUAL_CURRENCY_SKU_REDEEM; var value13; var value14; var value15; var value16; var body; var value17; var Array; var isArray; var isArray2; var binding4; var value18; var dispatch; var value19; var Error; var prototype; var error; var value21; var binding5; var value22; var captureException; var object6; var BillingError; var value23; var billingError; var value24; var value25; exceptionSkip106: while (true) { exceptionLanding106: while (true) { value = undefined; value2 = false; if (value2) { return value; } skuId = a0.skuId; var env0_0 = skuId; loadId = a0.loadId; onRedeemStart = a0.onRedeemStart; onRedeemSucceed = a0.onRedeemSucceed; onRedeemFail = a0.onRedeemFail; shouldRefetchBalance = a0.shouldRefetchBalance; value = undefined; if (shouldRefetchBalance === value) { value3 = true; shouldRefetchBalance = value3; } await value; value4 = undefined; value5 = false; if (value5) { return value4; } value6 = environment.__proto__.__proto__; binding = env2_1; value7 = binding(env2_2[4]); wait = value7.wait; Reflect.apply(wait, value7, [_fun78740]); if (onRedeemStart != null) { onRedeemStart(); } try { binding = env2_4; } catch (error) { break exceptionLanding106; } try { get = binding.get; } catch (error) { break exceptionLanding106; } try { value8 = Reflect.apply(get, binding, [skuId]); } catch (error) { break exceptionLanding106; } try { value9 = value8 == null; } catch (error) { break exceptionLanding106; } if (value9) { applicationId = value; } else { try { applicationId = value8.applicationId; } catch (error) { break exceptionLanding106; } } try { value10 = applicationId != null; } catch (error) { break exceptionLanding106; } if (value10) { try { binding = env2_0; } catch (error) { break exceptionLanding106; } try { binding2 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding2[7]; } catch (error) { break exceptionLanding106; } try { value11 = binding(property); } catch (error) { break exceptionLanding106; } try { isTestModeForApplication = value11.isTestModeForApplication; } catch (error) { break exceptionLanding106; } try { isTestModeForApplication2 = Reflect.apply(isTestModeForApplication, value11, [applicationId]); } catch (error) { break exceptionLanding106; } r9 = isTestModeForApplication2; } else { r9 = value10; } try { object4 = {}; } catch (error) { break exceptionLanding106; } try { object4.checkout_session_id = loadId; } catch (error) { break exceptionLanding106; } if (r9) { try { object4.test_mode = true; } catch (error) { break exceptionLanding106; } } try { binding = env2_0; } catch (error) { break exceptionLanding106; } try { binding3 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding3[5]; } catch (error) { break exceptionLanding106; } try { value12 = binding(property); } catch (error) { break exceptionLanding106; } try { HTTP = value12.HTTP; } catch (error) { break exceptionLanding106; } try { post = HTTP.post; } catch (error) { break exceptionLanding106; } try { object5 = {}; } catch (error) { break exceptionLanding106; } try { binding = env2_5; } catch (error) { break exceptionLanding106; } try { VIRTUAL_CURRENCY_SKU_REDEEM = binding.VIRTUAL_CURRENCY_SKU_REDEEM; } catch (error) { break exceptionLanding106; } try { value13 = Reflect.apply(VIRTUAL_CURRENCY_SKU_REDEEM, binding, [skuId]); } catch (error) { break exceptionLanding106; } try { object5.url = value13; } catch (error) { break exceptionLanding106; } try { object5.body = object4; } catch (error) { break exceptionLanding106; } try { object5.rejectWithError = false; } catch (error) { break exceptionLanding106; } try { value14 = Reflect.apply(post, HTTP, [object5]); } catch (error) { break exceptionLanding106; } await value14; try { value15 = undefined; value16 = false; } catch (error) { break exceptionLanding106; } if (value16) { return value15; } try { body = value15.body; } catch (error) { break exceptionLanding106; } try { value17 = body == null; } catch (error) { break exceptionLanding106; } if (value17) { try { Error = global.Error; } catch (error) { break exceptionLanding106; } try { prototype = Error.prototype; } catch (error) { break exceptionLanding106; } try { } catch (error) { break exceptionLanding106; } try { error = new Error('Could not read entitlements from Virtual Currency redemption response. Response: '); } catch (error) { break exceptionLanding106; } try { value21 = error instanceof Object ? error : undefined; } catch (error) { break exceptionLanding106; } try { binding = env2_6; } catch (error) { break exceptionLanding106; } try { error = binding.error; } catch (error) { break exceptionLanding106; } try { Reflect.apply(error, binding, ['Could not read entitlements from Virtual Currency redemption response. Response: ', body]); } catch (error) { break exceptionLanding106; } try { binding = env2_1; } catch (error) { break exceptionLanding106; } try { binding5 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding5[8]; } catch (error) { break exceptionLanding106; } try { value22 = binding(property); } catch (error) { break exceptionLanding106; } try { captureException = value22.captureException; } catch (error) { break exceptionLanding106; } try { object4 = {}; } catch (error) { break exceptionLanding106; } try { object6 = {}; } catch (error) { break exceptionLanding106; } try { object6.app_context = 'virtual_currency'; } catch (error) { break exceptionLanding106; } try { object4.tags = object6; } catch (error) { break exceptionLanding106; } try { Reflect.apply(captureException, value22, [value21, object4]); } catch (error) { break exceptionLanding106; } try { throw value21; } catch (error) { break exceptionLanding106; } } else { try { Array = global.Array; } catch (error) { break exceptionLanding106; } try { isArray = Array.isArray; } catch (error) { break exceptionLanding106; } try { isArray2 = Reflect.apply(isArray, Array, [body]); } catch (error) { break exceptionLanding106; } if (isArray2) { try { binding = env2_1; } catch (error) { break exceptionLanding106; } try { binding4 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding4[4]; } catch (error) { break exceptionLanding106; } try { value18 = binding(property); } catch (error) { break exceptionLanding106; } try { dispatch = value18.dispatch; } catch (error) { break exceptionLanding106; } try { object4 = {}; } catch (error) { break exceptionLanding106; } try { object4.type = 'VIRTUAL_CURRENCY_REDEEM_SUCCESS'; } catch (error) { break exceptionLanding106; } try { object4.skuId = skuId; } catch (error) { break exceptionLanding106; } try { object4.entitlements = body; } catch (error) { break exceptionLanding106; } try { Reflect.apply(dispatch, value18, [object4]); } catch (error) { break exceptionLanding106; } if (shouldRefetchBalance) { try { binding = env2_7; } catch (error) { break exceptionLanding106; } try { binding(); } catch (error) { break exceptionLanding106; } } try { value19 = onRedeemSucceed == null; } catch (error) { break exceptionLanding106; } if (!value19) { try { onRedeemSucceed(body); } catch (error) { break exceptionLanding106; } } return body; } try { Error = global.Error; } catch (error) { break exceptionLanding106; } try { prototype = Error.prototype; } catch (error) { break exceptionLanding106; } try { } catch (error) { break exceptionLanding106; } try { error = new Error('Could not read entitlements from Virtual Currency redemption response. Response: '); } catch (error) { break exceptionLanding106; } try { value21 = error instanceof Object ? error : undefined; } catch (error) { break exceptionLanding106; } try { binding = env2_6; } catch (error) { break exceptionLanding106; } try { error = binding.error; } catch (error) { break exceptionLanding106; } try { Reflect.apply(error, binding, ['Could not read entitlements from Virtual Currency redemption response. Response: ', body]); } catch (error) { break exceptionLanding106; } try { binding = env2_1; } catch (error) { break exceptionLanding106; } try { binding5 = env2_2; } catch (error) { break exceptionLanding106; } try { property = binding5[8]; } catch (error) { break exceptionLanding106; } try { value22 = binding(property); } catch (error) { break exceptionLanding106; } try { captureException = value22.captureException; } catch (error) { break exceptionLanding106; } try { object4 = {}; } catch (error) { break exceptionLanding106; } try { object6 = {}; } catch (error) { break exceptionLanding106; } try { object6.app_context = 'virtual_currency'; } catch (error) { break exceptionLanding106; } try { object4.tags = object6; } catch (error) { break exceptionLanding106; } try { Reflect.apply(captureException, value22, [value21, object4]); } catch (error) { break exceptionLanding106; } try { throw value21; } catch (error) { break exceptionLanding106; } } break exceptionSkip106; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; if (error instanceof BillingError) { r11 = error; value25 = env2_1(env2_2[4]); value25.dispatch({type: 'VIRTUAL_CURRENCY_REDEEM_FAIL', skuId: skuId, error: r11}); if (shouldRefetchBalance) { env2_7(); if (onRedeemFail == null) { return value; } onRedeemFail(r11); return value; } if (onRedeemFail == null) { return value; } onRedeemFail(r11); return value; } binding = env2_0; BillingError = binding(env2_2[6]).BillingError; prototype = BillingError.prototype; value23 = Object.create(prototype, {constructor: {value: BillingError}}); billingError = new BillingError(); value24 = billingError instanceof Object ? billingError : value23; r11 = value24; binding = env2_1; value25 = binding(env2_2[4]); dispatch = value25.dispatch; Reflect.apply(dispatch, value25, [{type: 'VIRTUAL_CURRENCY_REDEEM_FAIL', skuId: skuId, error: r11}]); if (shouldRefetchBalance) { env2_7(); if (onRedeemFail == null) { return value; } onRedeemFail(r11); return value; } if (onRedeemFail == null) { return value; } onRedeemFail(r11); return value; break exceptionSkip106; } } function _fun78736() { // fn#78736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10258:386, offset: 0x01e327b0, size: 49 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__; env3_1(env3_2[4]).dispatch({type: 'VIRTUAL_CURRENCY_BALANCE_FETCH'}); } function _fun78740() { // fn#78740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10258:1026, offset: 0x01e32b0e, size: 60 bytes, params: 1, frame: 13 const value = environment.__proto__.__proto__.__proto__; env3_1(env3_2[4]).dispatch({type: 'VIRTUAL_CURRENCY_REDEEM_START', skuId: skuId}); }