decord/source/records/InteractionRecord.tsx
2026-09-03 10:05:34 +00:00

44 lines
1.3 KiB
TypeScript

// Module ID: 4739
// Function ID: 4740
// Name: createFromServer
// Dependencies: [1935, 1934, 2]
// Module 4739 (createFromServer)
import toJSDefault from "toJS" /* 1935 */;
import closure_0 from "createdAt" /* 1934 */;
toJSDefault;
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;
}
tmp.displayName = name_localized;
return tmp;
}.prototype;
class prototype extends tmp2 {
}
prototype["createFromServer"] = function createFromServer(user) {
const obj = {};
const merged = Object.assign(user);
let str = user.user;
obj.user = new closure_0(str);
if (typeof prototype !== "function") {
str = "Trying to call a non-function";
HermesBuiltin.throwTypeError();
}
const tmp4 = new prototype(str, user, closure_0);
// 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");
export default prototype;