// Module ID: 1883 // Function ID: 1884 // Name: mappers // Dependencies: [2] // Exports: parseServerUserCollectibles, parseSkuIdFromServerData // Module 1883 (mappers) import size from "module_2" /* 2 */; const result = size.fileFinishedImporting("modules/collectibles/utils/mappers.tsx"); export const parseSkuIdFromServerData = function parseSkuIdFromServerData(skuId) { if (typeof skuId.skuId !== "string") { if (typeof skuId.skuId !== "number") { if (typeof skuId.sku_id === "string") { const _String = String; let StringResult = String(skuId.sku_id); } else { StringResult = null; } } return StringResult; } StringResult = String(skuId.skuId); }; export const parseServerUserCollectibles = function parseServerUserCollectibles(collectibles) { let tmp = null; if (typeof collectibles === "object") { tmp = null; if (null != collectibles) { let tmp2 = null; if ("nameplate" in collectibles) { tmp2 = null; if (typeof collectibles.nameplate === "object") { const nameplate = collectibles.nameplate; let tmp6 = null; if (typeof nameplate === "object") { tmp6 = null; if (null != nameplate) { if (typeof nameplate.skuId !== "string") { if (typeof nameplate.skuId !== "number") { if (typeof nameplate.sku_id === "string") { const _String = String; let StringResult = String(nameplate.sku_id); } else { StringResult = null; } } tmp6 = null; if (null != StringResult) { tmp6 = null; if ("label" in nameplate) { tmp6 = null; if (typeof nameplate.label === "string") { tmp6 = null; if ("palette" in nameplate) { tmp6 = null; if (typeof nameplate.palette === "string") { const obj3 = { skuId: StringResult, label: null, palette: null }; ({ label: obj2.label, palette: obj2.palette } = nameplate); if (tmp7) { obj3.asset = nameplate.asset; } if (tmp8) { obj3.expiresAt = nameplate.expiresAt; } tmp6 = obj3; if (tmp9) { obj3.expiresAt = nameplate.expires_at; tmp6 = obj3; } tmp7 = "asset" in nameplate && typeof nameplate.asset === "string"; tmp8 = "expiresAt" in nameplate && typeof nameplate.expiresAt === "number"; tmp9 = "expires_at" in nameplate && typeof nameplate.expires_at === "number"; } } } } } } const _String2 = String; StringResult = String(nameplate.skuId); } } const obj = { nameplate: tmp6 }; tmp2 = obj; } } tmp = tmp2; } } return tmp; };