87 lines
3.8 KiB
TypeScript
87 lines
3.8 KiB
TypeScript
/* Metro module 15824; source: stores/SelfPresenceStoreManager.tsx; dependencies: [7, 6, 15, 17, 18, 6876, 4860, 694, 2] */
|
|
function _fun121620(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16032:6, offset: 0x0254c48a, size: 253 bytes, params: 8, frame: 18
|
|
const handleChange_121624 = function() {
|
|
var defaultImport = importDefault(dependencyMap[7]);
|
|
var object = {type: 'SELF_PRESENCE_STORE_UPDATE'};
|
|
object.status = SelfPresenceStore.getStatus();
|
|
object.activities = SelfPresenceStore.getActivities(true);
|
|
object.hiddenActivities = SelfPresenceStore.getHiddenActivities();
|
|
defaultImport.dispatch(object);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
|
const selfPresenceStore = importDefault(6876) /* metro dependency 6876: SelfPresenceStore */;
|
|
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
value = _fun121625(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('stores/SelfPresenceStoreManager.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_121621() { // fn#121621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16032:158, offset: 0x0254c587, 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_121621_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun121625(a0) { // fn#121625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16032:532, offset: 0x0254c653, size: 42 bytes, params: 2, frame: 14
|
|
const closure = SelfPresenceStoreManager;
|
|
env0_6(closure, a0);
|
|
return env0_2(closure);
|
|
}
|
|
|
|
function SelfPresenceStoreManager(a0) { // fn#121626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16032:544, offset: 0x0254c67d, size: 179 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_3;
|
|
binding(this, SelfPresenceStoreManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(SelfPresenceStoreManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_121621()) {
|
|
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);
|
|
const Map = global.Map;
|
|
const map = new Map();
|
|
value.stores = map.set(SelfPresenceStore, handleChange_121624);
|
|
return value;
|
|
}
|
|
|