import "./Ability-D1F1s_19.js"; import "./ChallengeProgress-DKKtijWw.js"; import "./Enemy-BqxhFdkB.js"; import "./Intrinsics-CqFOpLxp.js"; import "./Utils-BxlzPLQa.js"; import "./Skin-DatBYpae.js"; import "./ItemConfig-B1B_FQ3v.js"; import "./Polarity--RYq3iwF.js"; import "./LoadOutItem-BPGcPkDJ.js"; import "./XpInfo-CyYVVX1U.js"; import "./LoadOutInventory-CgvhFgiI.js"; import "./LoadOutPreset-sWEYO4e2.js"; import "./Mission-D2n1i5R2.js"; import "./OperatorLoadOuts-BPNwtye2.js"; import "./Syndicate-CjUKKAsk.js"; import { Profile } from "./Profile-gcBL8rf7.js"; import "./Pvp-hyzYfVBB.js"; import "./Race-5Q0StEkE.js"; import "./Scan-Dlrv6viG.js"; import "./Weapon-4KlXEHQF.js"; import { Stats } from "./Stats-Bm1bpQe5.js"; import { parseDate } from "warframe-worldstate-data/utilities"; //#region src/ProfileParser.ts /** * Parser entry point * @module */ var ProfileParser = class { /** * Player's profile */ profile; /** * N/A */ techProjects; /** * N/A */ xpComponents; /** * N/A */ xpCacheExpiryDate; /** * N/A */ ceremonyResetDate; /** * Player stats */ stats; /** * * @param {Object} data The data returned by getProfile endpoint * @param {string} locale The locale to return where possible * @param {boolean} [withItem=false] Whether or not to include items */ constructor(data, locale = "en", withItem = false) { this.profile = new Profile(data.Results[0], locale, withItem); this.techProjects = data.TechProjects; this.xpComponents = data.XpCompoents; this.xpCacheExpiryDate = parseDate(data.XpCacheExpiryDate); this.ceremonyResetDate = parseDate(data.CeremonyResetDate); this.stats = new Stats(data.Stats); } }; //#endregion export { ProfileParser as default };