import "./Ability-DZsNRcrF.js"; import "./ChallengeProgress-v1BiMyB3.js"; import "./Enemy-4-GNMcmM.js"; import "./Intrinsics-CD0L0Q8v.js"; import "./Utils-Bl1SMxWR.js"; import "./Skin-CH7Edo2F.js"; import "./ItemConfig-47t0Q06F.js"; import "./Polarity-BNl5FwU7.js"; import "./LoadOutItem-BW86Bo93.js"; import "./XpInfo-BP-espyq.js"; import "./LoadOutInventory-C_FxFZBD.js"; import "./LoadOutPreset-Bvnll9kh.js"; import "./Mission-Ge93fWZI.js"; import "./OperatorLoadOuts-DEBLieNu.js"; import "./Syndicate-JRFbWDNM.js"; import { t as Profile } from "./Profile-BNVqjx51.js"; import "./Pvp-CA38TBtw.js"; import "./Race-DzilFJc6.js"; import "./Scan-CZV-NaUA.js"; import "./Weapon-DrdpqUpA.js"; import { t as Stats } from "./Stats-C_WiMlhn.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 };