93 lines
5.0 KiB
TypeScript
93 lines
5.0 KiB
TypeScript
/* Metro module 15694; source: modules/emojis/top_emojis/TopEmojisDataManager.tsx; dependencies: [6, 7, 15, 17, 18, 3969, 1881, 8535, 4860, 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 SelectedGuildStore from '../../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
|
|
import AutomaticLifecycleManager from '../../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as EmojiConstantsModule from '../EmojiConstants.tsx'; /* Metro dependency 1881 */
|
|
|
|
function _fun120396(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:6, offset: 0x0252a5eb, size: 264 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun120400(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/emojis/top_emojis/TopEmojisDataManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_120397() { // fn#120397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:190, offset: 0x0252a6f3, 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_120397_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun120400(a0) { // fn#120400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:393, offset: 0x0252a755, size: 74 bytes, params: 2, frame: 15
|
|
const TopEmojisDataManager2 = TopEmojisDataManager;
|
|
Inherits(TopEmojisDataManager2, a0);
|
|
return CreateClass(TopEmojisDataManager2, [{key: 'handleInteraction', value: value_120402}]);
|
|
function TopEmojisDataManager(a0) { // fn#120401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:405, offset: 0x0252a79f, size: 149 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_2;
|
|
binding(this, TopEmojisDataManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(TopEmojisDataManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_120397()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {EMOJI_INTERACTION_INITIATED: value.handleInteraction};
|
|
return value;
|
|
}
|
|
|
|
function value_120402({interaction}) { // fn#120402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15902:801, offset: 0x0252a834, size: 94 bytes, params: 2, frame: 12
|
|
const value = environment.__proto__;
|
|
const EmojiButtonMouseEntered = EmojiInteractionPoint.EmojiButtonMouseEntered;
|
|
const items2 = [EmojiButtonMouseEntered];
|
|
if (items2.includes(interaction)) {
|
|
(require(8535) /* metro dependency 8535: TopEmojisUtils */).maybeFetchTopEmojisByGuild(SelectedGuildStore.getGuildId());
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun120396, 15694, [6, 7, 15, 17, 18, 3969, 1881, 8535, 4860,
|
|
2]) /* metro module 15694, dependencies: [6, 7, 15, 17, 18, 3969, 1881, 8535, 4860, 2] */;
|