2026-10-10 08:08:14 +00:00
|
|
|
// Module ID: 5435
|
|
|
|
|
// Function ID: 5436
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: InteractionRecord
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [1405, 1404, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-10 08:08:14 +00:00
|
|
|
// Module 5435 (InteractionRecord)
|
2026-10-09 10:00:15 +00:00
|
|
|
import Record from "Record" /* 1405 */;
|
|
|
|
|
import UserRecord from "UserRecord" /* 1404 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
class InteractionRecord extends Record {
|
|
|
|
|
constructor(user) {
|
|
|
|
|
let name_localized;
|
|
|
|
|
const tmp = new InteractionRecord(new.target, user, this);
|
|
|
|
|
({ id: tmp.id, name: tmp.name, type: tmp.type, user: tmp.user, name_localized } = user);
|
2026-09-10 05:38:07 +00:00
|
|
|
if (name_localized == null) {
|
2026-10-03 08:58:59 +00:00
|
|
|
name_localized = user.name;
|
2026-09-10 05:38:07 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
tmp.displayName = name_localized;
|
|
|
|
|
return tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
static createFromServer(user) {
|
|
|
|
|
let name_localized;
|
|
|
|
|
const obj = { user: new UserRecord(user) };
|
|
|
|
|
const merged = Object.assign(user);
|
|
|
|
|
user = user.user;
|
|
|
|
|
new UserRecord(user);
|
|
|
|
|
const tmp2 = UserRecord;
|
|
|
|
|
if (typeof InteractionRecord === "function") {
|
|
|
|
|
const self = this;
|
|
|
|
|
const self2 = this;
|
|
|
|
|
const tmp5 = new InteractionRecord(user, user, tmp2);
|
|
|
|
|
({ id: tmp5.id, name: tmp5.name, type: tmp5.type, user: tmp5.user, name_localized } = obj);
|
|
|
|
|
if (name_localized == null) {
|
|
|
|
|
name_localized = obj.name;
|
|
|
|
|
}
|
|
|
|
|
tmp5.displayName = name_localized;
|
|
|
|
|
return tmp5;
|
|
|
|
|
} else {
|
|
|
|
|
throw new TypeError("Trying to call a non-function");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("records/InteractionRecord.tsx");
|
2026-07-21 06:55:02 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
export default InteractionRecord;
|