2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 8625
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 68590
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: extractBundleItemsFromArray
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [7984, 5782, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: bundleContainsNameplates, isValidCollectiblesBundle, isValidCollectiblesBundleItems
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 8625 (extractBundleItemsFromArray)
|
2026-07-20 16:05:17 +00:00
|
|
|
function extractBundleItemsFromArray(items) {
|
2026-07-25 08:10:48 +00:00
|
|
|
const itemsSortingHat = new require(7984) /* ItemsSortingHat */.ItemsSortingHat(items);
|
2026-07-20 16:05:17 +00:00
|
|
|
return { firstProfileEffect: itemsSortingHat.firstProfileEffect, firstAvatarDecoration: itemsSortingHat.firstAvatarDecoration, firstNameplate: itemsSortingHat.firstNameplate };
|
|
|
|
|
}
|
|
|
|
|
function extractBundleItems(items) {
|
|
|
|
|
return extractBundleItemsFromArray(items.items);
|
|
|
|
|
}
|
|
|
|
|
function isValidBundleItems(arg0) {
|
|
|
|
|
let firstAvatarDecoration;
|
|
|
|
|
let firstNameplate;
|
|
|
|
|
let firstProfileEffect;
|
|
|
|
|
({ firstAvatarDecoration, firstProfileEffect, firstNameplate } = arg0);
|
|
|
|
|
let tmp = null != firstAvatarDecoration && null != firstProfileEffect && null == firstNameplate;
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp = null != firstAvatarDecoration && null != firstProfileEffect && null != firstNameplate;
|
|
|
|
|
const tmp2 = null != firstAvatarDecoration && null != firstProfileEffect && null != firstNameplate;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/collectibles/utils/bundleUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const isValidCollectiblesBundle = function isValidCollectiblesBundle(items) {
|
|
|
|
|
return isValidBundleItems(extractBundleItems(items));
|
|
|
|
|
};
|
|
|
|
|
export const isValidCollectiblesBundleItems = function isValidCollectiblesBundleItems(items) {
|
|
|
|
|
return isValidBundleItems(extractBundleItemsFromArray(items));
|
|
|
|
|
};
|
|
|
|
|
export const bundleContainsNameplates = function bundleContainsNameplates(type) {
|
2026-07-25 08:10:48 +00:00
|
|
|
const tmp = !require(5782) /* getPriceForCollectiblesProduct */.isBundleProduct(type);
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp2 = !tmp;
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
tmp2 = null != extractBundleItems(type).firstNameplate;
|
|
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
};
|