/* Metro module 4130; source: stores/PremiumPaymentModalStore.tsx; dependencies: [6, 7, 15, 17, 18, 4131, 566, 694, 2] */ import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import Flux from '../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun34301(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4301:6, offset: 0x010521c3, size: 393 bytes, params: 8, frame: 21 const env0_0 = require; const closure = function(a0) { env0_7 = a0.error; }; const closure2 = function() { env0_7 = null; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const Store = (Flux).Store; let value = _fun34307(Store); value.displayName = 'PremiumPaymentModalStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {PREMIUM_PAYMENT_SUBSCRIBE_FAIL: closure, PREMIUM_PAYMENT_UPDATE_FAIL: closure, PREMIUM_PAYMENT_SUBSCRIBE_SUCCESS: function() { PREMIUM_PAYMENT_UPDATE_SUCCESS(); }, PREMIUM_PAYMENT_UPDATE_SUCCESS: closure2, PREMIUM_PAYMENT_ERROR_CLEAR: closure2, BRAINTREE_TOKENIZE_PAYPAL_FAIL: function({message}) { var BillingError = require(dependencyMap[5]).BillingError; var value3 = new BillingError(message); }, BRAINTREE_TOKENIZE_VENMO_FAIL: function({message}) { var BillingError = require(dependencyMap[5]).BillingError; var value3 = new BillingError(message); }, SKU_PURCHASE_SUCCESS: function(a0) { env0_8 = a0.giftCode; env0_9 = a0.skuId; }, SKU_PURCHASE_FAIL: function(a0) { env0_7 = a0.error; }, SKU_PURCHASE_AWAIT_CONFIRMATION: SKU_PURCHASE_AWAIT_CONFIRMATION, GIFT_CODE_CREATE: GIFT_CODE_CREATE}); (FileImportTrackerModule).fileFinishedImporting('stores/PremiumPaymentModalStore.tsx'); exports.default = value; function _isNativeReflectConstruct_34302() { // fn#34302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4301:148, offset: 0x0105234c, size: 94 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_34302_isNativeReflectConstruct = function() { return !!result; })(); } function _fun34307(a0) { // fn#34307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4301:454, offset: 0x010523ca, size: 95 bytes, params: 2, frame: 16 const PremiumPaymentModalStore2 = PremiumPaymentModalStore; Inherits(PremiumPaymentModalStore2, a0); return CreateClass(PremiumPaymentModalStore2, [{key: 'paymentError', get: get_34309}, {key: 'getGiftCode', value: value_34310}]); function PremiumPaymentModalStore() { // fn#34308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4301:466, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_2(this, PremiumPaymentModalStore); const value3 = env1_5(PremiumPaymentModalStore); return env1_4(this, _isNativeReflectConstruct_34302() ? global.Reflect.construct(value3, arguments, env1_5(this).constructor) : value3.apply(this, arguments)); } function get_34309() { // fn#34309, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1 return env1_7; } function value_34310(a0) { // fn#34310, offset: 0x01052429, size: 22 bytes, params: 2, frame: 4 return a0 !== env1_9 ? null : env1_8; } } function SKU_PURCHASE_AWAIT_CONFIRMATION(a0) { // fn#34316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4301:1652, offset: 0x010524af, size: 28 bytes, params: 2, frame: 2 var skuId; if (a0.isGift) { skuId = a0.skuId; } } function GIFT_CODE_CREATE({giftCode}) { // fn#34317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4301:1739, offset: 0x010524cb, size: 55 bytes, params: 2, frame: 4 const uses = giftCode.uses; if (uses !== 0) { return false; } if (giftCode.sku_id !== env0_9) { return false; } env0_8 = giftCode.code; } } global.__d(_fun34301, 4130, [6, 7, 15, 17, 18, 4131, 566, 694, 2]) /* metro module 4130, dependencies: [6, 7, 15, 17, 18, 4131, 566, 694, 2] */;