34 lines
2.2 KiB
TypeScript
34 lines
2.2 KiB
TypeScript
/* Metro module 13052; source: modules/rpc/server/commands/users.tsx; dependencies: [1878, 4135, 661, 13026, 8082, 2] */
|
|
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as ConstantsModule2 from '../../Constants.tsx'; /* Metro dependency 4135 */
|
|
|
|
function _fun99671(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13242:6, offset: 0x021d0f79, size: 242 bytes, params: 8, frame: 26
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ConstantsModule2;
|
|
const RPC_EMBEDDED_APP_SCOPE = value.RPC_EMBEDDED_APP_SCOPE;
|
|
const RPC_LOCAL_SCOPE = value.RPC_LOCAL_SCOPE;
|
|
const RPC_SCOPE_CONFIG = value.RPC_SCOPE_CONFIG;
|
|
const RPCCommands = (ConstantsModule).RPCCommands;
|
|
object = {};
|
|
const GET_USER = RPCCommands.GET_USER;
|
|
value = require(13026) /* metro dependency 13026: rpcSchema */;
|
|
const createRPCCommand = value.createRPCCommand;
|
|
const GET_USER2 = RPCCommands.GET_USER;
|
|
const ANY = RPC_SCOPE_CONFIG.ANY;
|
|
object[GET_USER] = Reflect.apply(createRPCCommand, value, [GET_USER2, {scope: {[ANY]: [RPC_EMBEDDED_APP_SCOPE,
|
|
RPC_LOCAL_SCOPE]}, handler: handler_99672}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/rpc/server/commands/users.tsx');
|
|
exports.default = object;
|
|
function handler_99672({args}) { // fn#99672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13242:281, offset: 0x021d106b, size: 70 bytes, params: 2, frame: 13
|
|
const user = UserStore.getUser(args.id);
|
|
return user == null ? null : (importDefault(8082) /* metro dependency 8082: transformUser */)(user);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun99671, 13052, [1878, 4135, 661, 13026, 8082,
|
|
2]) /* metro module 13052, dependencies: [1878, 4135, 661, 13026, 8082, 2] */;
|