Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,198 @@
|
||||
/* Metro module 10071; source: modules/virtual_currency/stores/VirtualCurrencyStore.tsx; dependencies: [6, 7, 15, 17, 18, 694, 566, 2] */
|
||||
function _fun78693(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:6, offset: 0x01e31d27, size: 244 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun78697(Store);
|
||||
value.displayName = 'VirtualCurrencyStore';
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/virtual_currency/stores/VirtualCurrencyStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_78694() { // fn#78694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:148, offset: 0x01e31e1b, size: 98 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_78694_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun78697(a0) { // fn#78697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:347, offset: 0x01e31e7d, size: 600 bytes, params: 2, frame: 16
|
||||
const closure = VirtualCurrencyStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'redeemError', get: function() {
|
||||
return this._redeemVirtualCurrencyError;
|
||||
}}, {key: 'isRedeeming', get: function() {
|
||||
return this._isRedeemingVirtualCurrency;
|
||||
}}, {key: 'redeemingSkuId', get: function() {
|
||||
return this._redeemingSkuId;
|
||||
}}, {key: 'entitlements', get: function() {
|
||||
return this._entitlements;
|
||||
}}, {key: 'balance', get: function() {
|
||||
return this._balance;
|
||||
}}, {key: 'fetchBalanceError', get: function() {
|
||||
return this._fetchBalanceError;
|
||||
}}, {key: 'isFetchingBalance', get: function() {
|
||||
return this._isFetchingBalance;
|
||||
}}, {key: 'onboardingModalOpenedPrior', get: function() {
|
||||
return this._onboardingModalOpenedPrior;
|
||||
}}, {key: 'balancePillOverlay', get: function() {
|
||||
return this._balancePillOverlay;
|
||||
}}, {key: 'setBalancePillOverlay', value: function(a0) {
|
||||
this._balancePillOverlay = a0;
|
||||
}}, {key: 'getCurrentBalance', value: function() {
|
||||
return this.balance;
|
||||
}}, {key: 'handleBalanceStateReset', value: function() {
|
||||
this._balance = null;
|
||||
this._fetchBalanceError = null;
|
||||
this._isFetchingBalance = false;
|
||||
}}, {key: 'handleBalanceFetch', value: function(a0) {
|
||||
var r3;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r3);
|
||||
throw undefined;
|
||||
}
|
||||
this._isFetchingBalance = true;
|
||||
this._fetchBalanceError = null;
|
||||
}}, {key: 'handleBalanceFetchSuccess', value: function({balance}) {
|
||||
this._isFetchingBalance = false;
|
||||
this._balance = balance;
|
||||
}}, {key: 'handleBalanceFetchFail', value: function({error}) {
|
||||
this._isFetchingBalance = false;
|
||||
this._fetchBalanceError = error;
|
||||
}}, {key: 'handleBalanceUpdate', value: function(a0) {
|
||||
this._balance = a0.balance;
|
||||
}}, {key: 'handleRedeemVirtualCurrencyStart', value: function({skuId}) {
|
||||
this._entitlements = null;
|
||||
this._redeemingSkuId = skuId;
|
||||
this._redeemVirtualCurrencyError = null;
|
||||
this._isRedeemingVirtualCurrency = true;
|
||||
}}, {key: 'handleRedeemVirtualCurrencySuccess', value: function(a0) {
|
||||
this._entitlements = a0.entitlements;
|
||||
this._redeemingSkuId = null;
|
||||
this._isRedeemingVirtualCurrency = false;
|
||||
}}, {key: 'handleRedeemVirtualCurrencyFail', value: function({error}) {
|
||||
this._entitlements = null;
|
||||
this._redeemVirtualCurrencyError = error;
|
||||
this._redeemingSkuId = null;
|
||||
this._isRedeemingVirtualCurrency = false;
|
||||
}}, {key: 'handleOnboardingModalOpen', value: function(a0) {
|
||||
var r2;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r2);
|
||||
throw undefined;
|
||||
}
|
||||
this._onboardingModalOpenedPrior = true;
|
||||
}}, {key: 'handleOnboardingModalReset', value: function(a0) {
|
||||
var r2;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r2);
|
||||
throw undefined;
|
||||
}
|
||||
this._onboardingModalOpenedPrior = false;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function VirtualCurrencyStore() { // fn#78698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:359, offset: 0x01e320d5, size: 352 bytes, params: 1, frame: 20
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, VirtualCurrencyStore);
|
||||
const items2 = [importDefault(694) /* metro dependency 694: Dispatcher */];
|
||||
items2[1] = {VIRTUAL_CURRENCY_REDEEM_START: VIRTUAL_CURRENCY_REDEEM_START,
|
||||
VIRTUAL_CURRENCY_REDEEM_SUCCESS: VIRTUAL_CURRENCY_REDEEM_SUCCESS,
|
||||
VIRTUAL_CURRENCY_REDEEM_FAIL: VIRTUAL_CURRENCY_REDEEM_FAIL,
|
||||
VIRTUAL_CURRENCY_BALANCE_FETCH: VIRTUAL_CURRENCY_BALANCE_FETCH,
|
||||
VIRTUAL_CURRENCY_BALANCE_FETCH_SUCCESS: VIRTUAL_CURRENCY_BALANCE_FETCH_SUCCESS,
|
||||
VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL: VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL,
|
||||
VIRTUAL_CURRENCY_BALANCE_UPDATE: VIRTUAL_CURRENCY_BALANCE_UPDATE,
|
||||
VIRTUAL_CURRENCY_ONBOARDING_MODAL_OPEN: VIRTUAL_CURRENCY_ONBOARDING_MODAL_OPEN,
|
||||
VIRTUAL_CURRENCY_ONBOARDING_MODAL_RESET: VIRTUAL_CURRENCY_ONBOARDING_MODAL_RESET,
|
||||
LOGIN_SUCCESS: LOGIN_SUCCESS_78708,
|
||||
VIRTUAL_CURRENCY_SET_BALANCE_PILL_OVERLAY: VIRTUAL_CURRENCY_SET_BALANCE_PILL_OVERLAY};
|
||||
const value3 = env1_5(VirtualCurrencyStore);
|
||||
value = env1_4(this, _isNativeReflectConstruct_78694() ? global.Reflect.construct(value3, items2,
|
||||
env1_5(this).constructor) : value3.apply(this, items2));
|
||||
value._entitlements = null;
|
||||
value._redeemingSkuId = null;
|
||||
value._isRedeemingVirtualCurrency = false;
|
||||
value._redeemVirtualCurrencyError = null;
|
||||
value._balance = null;
|
||||
value._fetchBalanceError = null;
|
||||
value._isFetchingBalance = false;
|
||||
value._onboardingModalOpenedPrior = false;
|
||||
value._balancePillOverlay = false;
|
||||
return value;
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_REDEEM_START(a0) { // fn#78699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:634, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_REDEEM_START, offset: 0x01e32235, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleRedeemVirtualCurrencyStart(a0);
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_REDEEM_SUCCESS(a0) { // fn#78700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:707, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_REDEEM_SUCCESS, offset: 0x01e3224e, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleRedeemVirtualCurrencySuccess(a0);
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_REDEEM_FAIL(a0) { // fn#78701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:779, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_REDEEM_FAIL, offset: 0x01e32267, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleRedeemVirtualCurrencyFail(a0);
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_BALANCE_FETCH(a0) { // fn#78702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:850, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_BALANCE_FETCH, offset: 0x01e32280, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleBalanceFetch(a0);
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_BALANCE_FETCH_SUCCESS(a0) { // fn#78703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:916, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_BALANCE_FETCH_SUCCESS, offset: 0x01e32299, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleBalanceFetchSuccess(a0);
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL(a0) { // fn#78704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:986, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_BALANCE_FETCH_FAIL, offset: 0x01e322b2, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleBalanceFetchFail(a0);
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_BALANCE_UPDATE(a0) { // fn#78705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:1049, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_BALANCE_UPDATE, offset: 0x01e322cb, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleBalanceUpdate(a0);
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_ONBOARDING_MODAL_OPEN(a0) { // fn#78706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:1116, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_ONBOARDING_MODAL_OPEN, offset: 0x01e322e4, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleOnboardingModalOpen(a0);
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_ONBOARDING_MODAL_RESET(a0) { // fn#78707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:1190, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_ONBOARDING_MODAL_RESET, offset: 0x01e322fd, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleOnboardingModalReset(a0);
|
||||
}
|
||||
|
||||
function VirtualCurrencyStoreLOGIN_SUCCESS() { // fn#78708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:1239, owner: VirtualCurrencyStore.LOGIN_SUCCESS, offset: 0x01e32316, size: 21 bytes, params: 1, frame: 9
|
||||
return env0_0.handleBalanceStateReset();
|
||||
}
|
||||
|
||||
function VIRTUAL_CURRENCY_SET_BALANCE_PILL_OVERLAY({balancePillOverlay}) { // fn#78709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10257:1313, owner: VirtualCurrencyStore.VIRTUAL_CURRENCY_SET_BALANCE_PILL_OVERLAY, offset: 0x01e3232b, size: 31 bytes, params: 2, frame: 11
|
||||
env0_0.setBalancePillOverlay(balancePillOverlay);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user