Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,58 @@
|
||||
/* Metro module 15130; source: modules/auth/makeAuthenticated.tsx; dependencies: [31, 1226, 661, 33, 1355, 15131, 2] */
|
||||
function _fun115338(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15327:6, offset: 0x0245d314, size: 176 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).LoginStates;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/makeAuthenticated.tsx');
|
||||
exports.makeAuthenticated = function(a0, a1) {
|
||||
var value = a2;
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var env0_2 = value !== undefined ? value : {passProps: true};
|
||||
var closure = _fun115340;
|
||||
closure.displayName = 'Authenticated(' + (a0.displayName ?? a0.name ?? '<Unknown>') + ')';
|
||||
return closure;
|
||||
};
|
||||
}
|
||||
|
||||
function makeAuthenticated(a0, a1) { // fn#115339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15327:238, offset: 0x0245d3c4, size: 119 bytes, params: 3, frame: 14
|
||||
const value = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const r1 = value !== undefined ? value : {passProps: true};
|
||||
const closure = Authenticated;
|
||||
closure.displayName = 'Authenticated(' + (a0.displayName ?? a0.name ?? '<Unknown>') + ')';
|
||||
return closure;
|
||||
}
|
||||
|
||||
function Authenticated(a0) { // fn#115340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15327:295, owner: makeAuthenticated.Authenticated, offset: 0x0245d43b, size: 240 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
let value = a0;
|
||||
const authenticationUtilsModule = require(1355) /* metro dependency 1355: AuthenticationUtils */;
|
||||
if (authenticationUtilsModule.isAuthenticated()) {
|
||||
value = ((Component) => <Component {...env0_2.passProps ? value : null} />)(env0_0);
|
||||
r0 = value;
|
||||
} else if (AuthenticationStore.getLoginStatus() === LoginStates.LOGGING_IN) {
|
||||
value = ((Component) => <Component {...env0_2.passProps ? value : null} />)(env0_0);
|
||||
r0 = value;
|
||||
} else if (AuthenticationStore.allowLogoutRedirect()) {
|
||||
if (require != null) {
|
||||
value = importDefault(15131) /* metro dependency 15131: RedirectUnauthenticated */;
|
||||
value = ((Component) => <Component renderRedirect={((Component) => <Component />)(value)} />)(require);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = importDefault(15131) /* metro dependency 15131: RedirectUnauthenticated */;
|
||||
value = ((Component) => <Component />)(value);
|
||||
r0 = value;
|
||||
}
|
||||
} else {
|
||||
value = ((Component) => <Component {...env0_2.passProps ? value : null} />)(env0_0);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user