decord/source/records/InteractionRecord.tsx

45 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 4626
// Function ID: 4627
2026-07-29 08:29:29 +00:00
// Name: createFromServer
2026-08-11 06:20:06 +00:00
// Dependencies: [1931, 1930, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 4626 (createFromServer)
2026-08-24 06:08:38 +00:00
import toJSDefault from "toJS" /* 1931 */;
import closure_0 from "createdAt" /* 1930 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
toJSDefault;
2026-07-29 08:29:29 +00:00
let prototype;
prototype = function InteractionRecord(name) {
const tmp = new prototype(new.target, name, new.target);
// ThrowIfThisInitialized (0x7c)
({ id: tmp.id, name: tmp.name, type: tmp.type, user: tmp.user, name_localized } = name);
if (name_localized == null) {
name_localized = name.name;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp.displayName = name_localized;
return tmp;
}.prototype;
class prototype extends tmp2 {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
prototype["createFromServer"] = function createFromServer(user) {
const obj = {};
const merged = Object.assign(user);
let str = user.user;
2026-08-24 06:08:38 +00:00
obj.user = new closure_0(str);
2026-08-04 21:03:28 +00:00
if (typeof prototype !== "function") {
2026-07-29 08:29:29 +00:00
str = "Trying to call a non-function";
HermesBuiltin.throwTypeError();
}
2026-08-24 06:08:38 +00:00
const tmp4 = new prototype(str, user, closure_0);
2026-07-29 08:29:29 +00:00
// ThrowIfThisInitialized (0x7c)
({ id: tmp4.id, name: tmp4.name, type: tmp4.type, user: tmp4.user, name_localized } = obj);
if (name_localized == null) {
name_localized = obj.name;
}
tmp4.displayName = name_localized;
return tmp4;
};
const result = require("set").fileFinishedImporting("records/InteractionRecord.tsx");
2026-07-21 06:55:02 +00:00
2026-07-29 08:29:29 +00:00
export default prototype;