38 lines
2.1 KiB
TypeScript
38 lines
2.1 KiB
TypeScript
/* Metro module 1355; source: utils/AuthenticationUtils.tsx; dependencies: [692, 1356, 2] */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as TokenManagerModule from '../external/discord_common/js/shared/lib/TokenManager.tsx'; /* Metro dependency 692 */
|
|
|
|
function _fun15565(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1482:6, offset: 0x00e36297, size: 129 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const getToken_155662 = getToken_15566;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('utils/AuthenticationUtils.tsx');
|
|
exports.getToken = getToken_155662;
|
|
exports.isAuthenticated = isAuthenticated;
|
|
exports.getArtForPath = getArtForPath;
|
|
function getToken_15566() { // fn#15566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1482:43, offset: 0x00e36318, size: 36 bytes, params: 1, frame: 11
|
|
return (TokenManagerModule).getToken();
|
|
}
|
|
|
|
function isAuthenticated() { // fn#15567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1482:239, offset: 0x00e3633c, size: 21 bytes, params: 1, frame: 9
|
|
return getToken_15566() != null;
|
|
}
|
|
|
|
function getArtForPath(a0) { // fn#15568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1482:307, offset: 0x00e36351, size: 70 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var regexp;
|
|
const value = null;
|
|
if (value != a0) {
|
|
regexp = RegExp('^\\/developers', '');
|
|
r0 = regexp.test(a0) ? require(1356) /* metro dependency 1356 */ : value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun15565, 1355, [692, 1356, 2]) /* metro module 1355, dependencies: [692, 1356, 2] */;
|