86 lines
3.6 KiB
TypeScript
86 lines
3.6 KiB
TypeScript
/* Metro module 15308; source: modules/toast/native/ToastStore.tsx; dependencies: [7, 6, 15, 17, 18, 566, 694, 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 env0_0 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
const Store = (importDefault(566) /* metro dependency 566: 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;
|
|
}});
|
|
(require(2) /* metro dependency 2 */).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 closure = ToastStore;
|
|
env0_4(closure, a0);
|
|
return env0_0(closure);
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
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;
|
|
return value;
|
|
}
|
|
|