95 lines
4.6 KiB
TypeScript
95 lines
4.6 KiB
TypeScript
/* Metro module 15308; source: modules/toast/native/ToastStore.tsx; dependencies: [7, 6, 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 _fun117035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:6, offset: 0x024a11f0, size: 287 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Store = (Flux).Store;
|
|
let value = _fun117039(Store);
|
|
value.displayName = 'ToastStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {TOAST_OPEN: TOAST_OPEN,
|
|
TOAST_CLOSE: function() {
|
|
env0_5 = null;
|
|
}});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/toast/native/ToastStore.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_117036() { // fn#117036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:148, offset: 0x024a130f, 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_117036_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun117039(a0) { // fn#117039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:354, offset: 0x024a1371, size: 42 bytes, params: 2, frame: 14
|
|
const ToastStore2 = ToastStore;
|
|
Inherits(ToastStore2, a0);
|
|
return CreateClass(ToastStore2);
|
|
function ToastStore(a0) { // fn#117040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:366, offset: 0x024a139b, size: 141 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_1;
|
|
binding(this, ToastStore);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_3(ToastStore);
|
|
binding = env1_2;
|
|
if (_isNativeReflectConstruct_117036()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_3(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.getContent = getContent_117041;
|
|
return value;
|
|
function ToastStoreGetContent() { // fn#117041, owner: ToastStore.getContent, offset: 0x010030da, size: 9 bytes, params: 1, frame: 1
|
|
return env2_5;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function TOAST_OPEN({toastProps}) { // fn#117042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15505:715, offset: 0x024a1428, size: 53 bytes, params: 2, frame: 6
|
|
if (env0_5?.key === toastProps.key) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun117035, 15308, [7, 6, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 15308, dependencies: [7, 6, 15, 17, 18, 566, 694, 2] */;
|