127 lines
6.6 KiB
TypeScript
127 lines
6.6 KiB
TypeScript
/* Metro module 10604; source: modules/media_channel/MediaPostEmbedStore.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 _fun81731(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:6, offset: 0x01edc4af, size: 399 bytes, params: 8, frame: 21
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {NOT_FETCHED: 0};
|
|
object[0] = 'NOT_FETCHED';
|
|
object.FETCHING = 1;
|
|
object[1] = 'FETCHING';
|
|
object.FETCHED = 2;
|
|
object[2] = 'FETCHED';
|
|
object.FAILED = 3;
|
|
object[3] = 'FAILED';
|
|
let env0_6 = {};
|
|
let env0_7 = {};
|
|
const Store = (Flux).Store;
|
|
let value = _fun81735(Store);
|
|
value.displayName = 'MediaPostEmbedStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: function() {
|
|
env0_6 = {};
|
|
env0_7 = {};
|
|
}, MEDIA_POST_EMBED_FETCH: MEDIA_POST_EMBED_FETCH, MEDIA_POST_EMBED_FETCH_SUCCESS: MEDIA_POST_EMBED_FETCH_SUCCESS,
|
|
MEDIA_POST_EMBED_FETCH_FAILURE: MEDIA_POST_EMBED_FETCH_FAILURE, LOGOUT: LOGOUT_81744});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/media_channel/MediaPostEmbedStore.tsx');
|
|
exports.default = value;
|
|
exports.FetchState = object;
|
|
function _isNativeReflectConstruct_81732() { // fn#81732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:148, offset: 0x01edc63e, 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_81732_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun81735(a0) { // fn#81735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:497, offset: 0x01edc6a0, size: 126 bytes, params: 2, frame: 16
|
|
const MediaPostEmbedStore2 = MediaPostEmbedStore;
|
|
Inherits(MediaPostEmbedStore2, a0);
|
|
return CreateClass(MediaPostEmbedStore2, [{key: 'getMediaPostEmbed', value: value_81737}, {key: 'getEmbedFetchState',
|
|
value: value_81738}, {key: 'getMediaPostEmbeds', value: value_81739}]);
|
|
function MediaPostEmbedStore() { // fn#81736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:509, offset: 0x00e4046a, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, MediaPostEmbedStore);
|
|
const value3 = env1_3(MediaPostEmbedStore);
|
|
return env1_2(this, _isNativeReflectConstruct_81732() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_81737(a0) { // fn#81737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:829, offset: 0x01edc71e, size: 26 bytes, params: 2, frame: 2
|
|
var value;
|
|
if (a0 != null) {
|
|
value = environment.__proto__;
|
|
return env1_6[a0];
|
|
}
|
|
}
|
|
|
|
function value_81738(a0) { // fn#81738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:898, offset: 0x01edc738, size: 32 bytes, params: 2, frame: 3
|
|
return env1_7[a0] ?? env1_5.NOT_FETCHED;
|
|
}
|
|
|
|
function value_81739() { // fn#81739, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
|
|
return env1_6;
|
|
}
|
|
|
|
}
|
|
|
|
function MEDIA_POST_EMBED_FETCH({threadId}) { // fn#81741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:1167, offset: 0x01edc758, size: 34 bytes, params: 2, frame: 3
|
|
const binding = env0_7;
|
|
const FETCHING = env0_5.FETCHING;
|
|
binding[threadId] = FETCHING;
|
|
}
|
|
|
|
function MEDIA_POST_EMBED_FETCH_SUCCESS({threadId, mediaPostEmbed}) { // fn#81742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:1264, offset: 0x01edc77a, size: 62 bytes, params: 2, frame: 14
|
|
const object = {};
|
|
copyDataProperties(object, env0_6, undefined);
|
|
object[threadId] = mediaPostEmbed;
|
|
const binding = env0_7;
|
|
const FETCHED = env0_5.FETCHED;
|
|
binding[threadId] = FETCHED;
|
|
}
|
|
|
|
function MEDIA_POST_EMBED_FETCH_FAILURE({threadId}) { // fn#81743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:1399, offset: 0x01edc7b8, size: 34 bytes, params: 2, frame: 3
|
|
const binding = env0_7;
|
|
const FAILED = env0_5.FAILED;
|
|
binding[threadId] = FAILED;
|
|
}
|
|
|
|
function LOGOUT_81744(a0) { // fn#81744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10790:1472, offset: 0x01edc7da, size: 31 bytes, params: 2, frame: 2
|
|
if (!a0.isSwitchingAccount) {
|
|
env0_6 = {};
|
|
env0_7 = {};
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun81731, 10604, [6, 7, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 10604, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
|