90 lines
4.5 KiB
TypeScript
90 lines
4.5 KiB
TypeScript
/* Metro module 7038; source: modules/premium/gifting/GiftPromotionStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 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});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
object = {giftOptionsReceiptMap: {}};
|
|
const PersistedStore = (importDefault(566) /* metro dependency 566: 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});
|
|
(require(2) /* metro dependency 2 */).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 closure = GiftPromotionStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'initialize', value: value_55845}, {key: 'getState', value: value_55846},
|
|
{key: 'getGiftOptionsForKey', value: value_55847}]);
|
|
}
|
|
|
|
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];
|
|
}
|
|
|
|
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 object2;
|
|
if (a0 != null) {
|
|
value = environment.__proto__;
|
|
binding = env1_5;
|
|
object2 = {};
|
|
copyDataProperties(object2, a0.giftOptionsReceiptMap, a0);
|
|
binding.giftOptionsReceiptMap = object2;
|
|
}
|
|
}
|
|
|
|
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];
|
|
}
|
|
|