Files
discord-decomp/modules/collectibles/records/ProfileFrameRecord.tsx
T
2026-11-01 12:12:55 +02:00

43 lines
1.6 KiB
TypeScript

// Metro module 5805 (f5806).
import BaseCollectiblesItemRecord from "./BaseCollectiblesItemRecord";
import { CollectiblesItemType } from "../../../_bundle/Module1901";
import { $callWithNewTarget } from "../../../_hermes/prelude";
class ProfileFrameRecord extends BaseCollectiblesItemRecord {
type = CollectiblesItemType.PROFILE_FRAME;
constructor(a0) {
super(a0);
this.label = a0.label;
this.layers = a0.layers;
this.innerWidth = a0.innerWidth;
this.overflowTop = a0.overflowTop;
this.overflowBottom = a0.overflowBottom;
this.overflowHorizontal = a0.overflowHorizontal;
}
static fromServer({ inner_width, overflow_top, overflow_bottom, overflow_horizontal, ...rest }) {
const r2 = {
...Reflect.get(Object.getPrototypeOf(ProfileFrameRecord), "fromServer", this).call(this, rest),
...rest,
innerWidth: inner_width,
overflowTop: overflow_top,
overflowBottom: overflow_bottom,
overflowHorizontal: overflow_horizontal
};
const prototypeOf = Object.getPrototypeOf(ProfileFrameRecord);
const r28 = Object.create(ProfileFrameRecord.prototype);
const r30 = $callWithNewTarget(prototypeOf, r28, ProfileFrameRecord, r2);
const r31 = r30 instanceof Object ? r30 : r28;
r31.type = CollectiblesItemType.PROFILE_FRAME;
r31.label = r2.label;
r31.layers = r2.layers;
r31.innerWidth = r2.innerWidth;
r31.overflowTop = r2.overflowTop;
r31.overflowBottom = r2.overflowBottom;
r31.overflowHorizontal = r2.overflowHorizontal;
return r31;
}
}
export default ProfileFrameRecord;
export function isProfileFrameRecord(a0) {
return a0 instanceof ProfileFrameRecord;
}