decord/source/modules/auth/makeAuthenticated.tsx

79 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 15478
// Function ID: 118962
2026-07-20 16:05:17 +00:00
// Name: makeAuthenticated
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 1194, 653, 33, 1328, 15479, 2]
2026-07-20 16:05:17 +00:00
// Exports: makeAuthenticated
2026-07-24 07:16:23 +00:00
// Module 15478 (makeAuthenticated)
2026-07-23 10:11:24 +00:00
import "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { LoginStates } from "ME";
import { jsx } from "jsxProd";
const require = arg1;
const result = require("ME").fileFinishedImporting("modules/auth/makeAuthenticated.tsx");
2026-07-20 16:05:17 +00:00
export const makeAuthenticated = function makeAuthenticated(displayName) {
let tmp = arg2;
2026-07-23 10:11:24 +00:00
let closure_0 = displayName;
let closure_1 = arg1;
2026-07-20 16:05:17 +00:00
if (arg2 === undefined) {
2026-07-23 10:11:24 +00:00
let obj = { passProps: true };
2026-07-20 16:05:17 +00:00
tmp = obj;
}
const dependencyMap = tmp;
class Authenticated {
constructor(arg0) {
2026-07-23 10:11:24 +00:00
obj = closure_0(closure_2[4]);
2026-07-20 16:05:17 +00:00
if (!obj.isAuthenticated()) {
2026-07-23 10:11:24 +00:00
tmp = outer1_3;
tmp2 = outer1_4;
if (outer1_3.getLoginStatus() !== outer1_4.LOGGING_IN) {
tmp3 = outer1_3;
if (outer1_3.allowLogoutRedirect()) {
tmp4 = closure_1;
2026-07-20 16:05:17 +00:00
tmp5 = null;
2026-07-23 10:11:24 +00:00
if (null != closure_1) {
tmp10 = outer1_5;
tmp11 = closure_1;
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
tmp12 = closure_1;
tmp13 = closure_2;
2026-07-20 16:05:17 +00:00
num2 = 5;
2026-07-23 10:11:24 +00:00
obj.renderRedirect = outer1_5(closure_1(closure_2[5]), {});
tmp14Result = outer1_5(closure_1, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp6 = outer1_5;
tmp7 = closure_1;
tmp8 = closure_2;
2026-07-20 16:05:17 +00:00
num = 5;
2026-07-23 10:11:24 +00:00
tmp14Result = outer1_5(closure_1(closure_2[5]), {});
2026-07-20 16:05:17 +00:00
}
}
return tmp14Result;
}
}
obj1 = {};
tmp16 = null;
2026-07-23 10:11:24 +00:00
tmp14 = outer1_5;
tmp15 = closure_0;
if (closure_2.passProps) {
2026-07-20 16:05:17 +00:00
tmp16 = displayName;
}
merged = Object.assign(tmp16);
tmp14Result = tmp14(tmp15, obj1);
return;
}
}
let name = displayName.displayName;
if (null == name) {
name = displayName.name;
}
let str = "<Unknown>";
if (null != name) {
str = name;
}
Authenticated.displayName = "Authenticated(" + str + ")";
return Authenticated;
};