107 lines
6.0 KiB
TypeScript
107 lines
6.0 KiB
TypeScript
/* Metro module 7038; source: modules/premium/gifting/GiftPromotionStore.tsx; dependencies: [6, 7, 15, 17, 18, 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 _fun55839(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:6, offset: 0x013b4c2c, size: 321 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {giftOptionsReceiptMap: {}};
|
|
const PersistedStore = (Flux).PersistedStore;
|
|
let value = _fun55843(PersistedStore);
|
|
value.displayName = 'GiftPromotionStore';
|
|
value.persistKey = 'GiftPromotionStore';
|
|
value.migrations = [function(a0) {
|
|
var value = a0;
|
|
var value2 = null;
|
|
return value2 == value ? value : {giftOptionsReceiptMap: value2 != value.giftOptionsReceiptMap ? value.giftOptionsReceiptMap : value2};
|
|
}];
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
|
|
env0_5 = {giftOptionsReceiptMap: {}};
|
|
}, GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION: GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION,
|
|
GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION: GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/premium/gifting/GiftPromotionStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_55840() { // fn#55840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:148, offset: 0x013b4d6d, 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_55840_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun55843(a0) { // fn#55843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:380, offset: 0x013b4dcb, size: 114 bytes, params: 2, frame: 16
|
|
const GiftPromotionStore2 = GiftPromotionStore;
|
|
Inherits(GiftPromotionStore2, a0);
|
|
return CreateClass(GiftPromotionStore2, [{key: 'initialize', value: value_55845}, {key: 'getState', value: value_55846},
|
|
{key: 'getGiftOptionsForKey', value: value_55847}]);
|
|
function GiftPromotionStore() { // fn#55844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:392, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, GiftPromotionStore);
|
|
const value3 = env1_3(GiftPromotionStore);
|
|
return env1_2(this, _isNativeReflectConstruct_55840() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_55845(a0) { // fn#55845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:700, offset: 0x013b4e3d, size: 41 bytes, params: 2, frame: 12
|
|
var value;
|
|
var binding;
|
|
var object;
|
|
if (a0 != null) {
|
|
value = environment.__proto__;
|
|
binding = env1_5;
|
|
object = {};
|
|
copyDataProperties(object, a0.giftOptionsReceiptMap, a0);
|
|
binding.giftOptionsReceiptMap = object;
|
|
}
|
|
}
|
|
|
|
function value_55846() { // fn#55846, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
|
|
return env1_5;
|
|
}
|
|
|
|
function value_55847(a0) { // fn#55847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:856, offset: 0x013b4e66, size: 22 bytes, params: 2, frame: 2
|
|
return env1_5.giftOptionsReceiptMap[a0];
|
|
}
|
|
|
|
}
|
|
|
|
function GIFT_PROMOTION_GIFT_OPTIONS_CACHE_ACTION({key, giftOptions}) { // fn#55850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1231, offset: 0x013b4eba, size: 35 bytes, params: 2, frame: 3
|
|
env0_5.giftOptionsReceiptMap[key] = giftOptions;
|
|
}
|
|
|
|
function GIFT_PROMOTION_GIFT_OPTIONS_CLEAR_CACHE_ACTION({key}) { // fn#55851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7216:1363, offset: 0x013b4edd, size: 29 bytes, params: 2, frame: 2
|
|
delete env0_5.giftOptionsReceiptMap[key];
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun55839, 7038, [6, 7, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 7038, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
|