80 lines
4.3 KiB
TypeScript
80 lines
4.3 KiB
TypeScript
/* Metro module 12591; source: stores/ChannelSKUStore.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 _fun96485(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12781:6, offset: 0x0215f75f, size: 283 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_5 = {};
|
|
const Store = (Flux).Store;
|
|
let value = _fun96489(Store);
|
|
value.displayName = 'ChannelSKUStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: function() {
|
|
env0_5 = {};
|
|
}, STORE_LISTING_FETCH_SUCCESS: STORE_LISTING_FETCH_SUCCESS_96493});
|
|
(FileImportTrackerModule).fileFinishedImporting('stores/ChannelSKUStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_96486() { // fn#96486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12781:148, offset: 0x0215f87a, 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_96486_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun96489(a0) { // fn#96489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12781:356, offset: 0x0215f8dc, size: 74 bytes, params: 2, frame: 15
|
|
const ChannelSKUStore2 = ChannelSKUStore;
|
|
Inherits(ChannelSKUStore2, a0);
|
|
return CreateClass(ChannelSKUStore2, [{key: 'getSkuIdForChannel', value: value_96491}]);
|
|
function ChannelSKUStore() { // fn#96490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12781:368, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, ChannelSKUStore);
|
|
const value3 = env1_3(ChannelSKUStore);
|
|
return env1_2(this, _isNativeReflectConstruct_96486() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_96491(a0) { // fn#96491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12781:669, offset: 0x01e1641f, size: 16 bytes, params: 2, frame: 2
|
|
return env1_5[a0];
|
|
}
|
|
|
|
}
|
|
|
|
function STORE_LISTING_FETCH_SUCCESS_96493({channelId, storeListing}) { // fn#96493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12781:848, offset: 0x0215f926, size: 46 bytes, params: 2, frame: 3
|
|
if (channelId != null) {
|
|
env0_5[channelId] = storeListing.sku.id;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun96485, 12591, [6, 7, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 12591, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
|