89 lines
4.2 KiB
TypeScript
89 lines
4.2 KiB
TypeScript
/* Metro module 15822; source: modules/search/managers/SearchTokensManager.tsx; dependencies: [6, 7, 15, 17, 18, 1950, 9675, 4860, 2] */
|
|
function _fun121603(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:6, offset: 0x0254bd17, size: 248 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
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 env0_7 = (require(1950) /* metro dependency 1950: IntlLoaderStore */).subscribeToIntlLoadingSuccess;
|
|
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
value = _fun121607(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/search/managers/SearchTokensManager.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_121604() { // fn#121604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:188, offset: 0x0254be0f, 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_121604_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun121607(a0) { // fn#121607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:391, offset: 0x0254be71, size: 97 bytes, params: 2, frame: 16
|
|
const closure = SearchTokensManager;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, [{key: '_initialize', value: value_121609}, {key: '_terminate', value: function() {
|
|
var _unsubscribeIntlLoadingStore = this._unsubscribeIntlLoadingStore;
|
|
if (_unsubscribeIntlLoadingStore != null) {
|
|
_unsubscribeIntlLoadingStore.call(this);
|
|
}
|
|
}}]);
|
|
}
|
|
|
|
function SearchTokensManager(a0) { // fn#121608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:403, offset: 0x0254bed2, size: 185 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_2;
|
|
binding(this, SearchTokensManager);
|
|
const items = [];
|
|
arraySpread(items, value, 0, items);
|
|
value = env1_5(SearchTokensManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_121604()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
const refreshSearchTokens = (require(9675) /* metro dependency 9675: SearchUtils */).refreshSearchTokens;
|
|
value.actions = {USER_SETTINGS_PROTO_UPDATE: refreshSearchTokens, POST_CONNECTION_OPEN: refreshSearchTokens};
|
|
return value;
|
|
}
|
|
|
|
function value_121609() { // fn#121609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16030:844, offset: 0x0254bf8b, size: 51 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__;
|
|
this._unsubscribeIntlLoadingStore = subscribeToIntlLoadingSuccess((require(9675) /* metro dependency 9675: SearchUtils */).refreshSearchTokens);
|
|
}
|
|
|