92 lines
5.3 KiB
TypeScript
92 lines
5.3 KiB
TypeScript
/* Metro module 4784; source: modules/stickers/StickerMessagePreviewStore.tsx; dependencies: [6, 7, 15, 17, 18, 4645, 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 */
|
|
import * as DraftStoreModule from '../../stores/DraftStore.tsx'; /* Metro dependency 4645 */
|
|
|
|
function _fun41337(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4962:6, offset: 0x0111c59b, size: 317 bytes, params: 8, frame: 19
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_6 = {};
|
|
let env0_7 = {};
|
|
const Store = (Flux).Store;
|
|
let value = _fun41341(Store);
|
|
value.displayName = 'StickerMessagePreviewStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{ADD_STICKER_PREVIEW: ADD_STICKER_PREVIEW, CLEAR_STICKER_PREVIEW: CLEAR_STICKER_PREVIEW, LOGOUT: function() {
|
|
env0_6 = {};
|
|
env0_7 = {};
|
|
}});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/stickers/StickerMessagePreviewStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_41338() { // fn#41338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4962:168, offset: 0x0111c6d8, 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_41338_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun41341(a0) { // fn#41341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4962:381, offset: 0x0111c736, size: 70 bytes, params: 2, frame: 15
|
|
const StickerMessagePreviewStore2 = StickerMessagePreviewStore;
|
|
Inherits(StickerMessagePreviewStore2, a0);
|
|
return CreateClass(StickerMessagePreviewStore2, [{key: 'getStickerPreview', value: value_41343}]);
|
|
function StickerMessagePreviewStore() { // fn#41342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4962:393, offset: 0x00e4046a, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, StickerMessagePreviewStore);
|
|
const value3 = env1_3(StickerMessagePreviewStore);
|
|
return env1_2(this, _isNativeReflectConstruct_41338() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_41343(a0, a1) { // fn#41343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4962:748, offset: 0x0111c77c, size: 39 bytes, params: 3, frame: 3
|
|
const FirstThreadMessage = DraftType.FirstThreadMessage;
|
|
return (a1 === FirstThreadMessage ? env1_7 : env1_6)[a0];
|
|
}
|
|
|
|
}
|
|
|
|
function ADD_STICKER_PREVIEW({channelId, sticker, draftType}) { // fn#41344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4962:906, offset: 0x0111c7a3, size: 63 bytes, params: 2, frame: 5
|
|
const FirstThreadMessage = DraftType.FirstThreadMessage;
|
|
(draftType === FirstThreadMessage ? env0_7 : env0_6)[channelId] = [sticker];
|
|
}
|
|
|
|
function CLEAR_STICKER_PREVIEW({channelId, draftType}) { // fn#41345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4962:1037, offset: 0x0111c7e2, size: 59 bytes, params: 2, frame: 4
|
|
const FirstThreadMessage = DraftType.FirstThreadMessage;
|
|
const r0 = draftType === FirstThreadMessage ? env0_7 : env0_6;
|
|
if (r0[channelId] != null) {
|
|
delete r0[channelId];
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun41337, 4784, [6, 7, 15, 17, 18, 4645, 566, 694,
|
|
2]) /* metro module 4784, dependencies: [6, 7, 15, 17, 18, 4645, 566, 694, 2] */;
|