30 lines
1.5 KiB
TypeScript
30 lines
1.5 KiB
TypeScript
/* Metro module 11878; source: modules/user/isStaffFromRawUser.tsx; dependencies: [661, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun91133(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12064:6, offset: 0x0205364b, size: 109 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/user/isStaffFromRawUser.tsx');
|
|
exports.default = isStaff_91134;
|
|
function isStaff_91134(a0) { // fn#91134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12064:195, offset: 0x020536b8, size: 73 bytes, params: 2, frame: 5
|
|
var r0;
|
|
const r4 = a0.flags ?? 0;
|
|
let STAFF = UserFlags.STAFF;
|
|
value = r4 & STAFF;
|
|
STAFF = UserFlags.STAFF;
|
|
value = value === STAFF;
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
value = undefined;
|
|
value = (a0 == null ? value : a0.personal_connection_id) != null;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun91133, 11878, [661, 2]) /* metro module 11878, dependencies: [661, 2] */;
|