decord/source/modules/collectibles/utils/bundleUtils.tsx

48 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 8693
// Function ID: 8694
// Name: isValidCollectiblesBundle
// Dependencies: [8046, 5810, 2]
2026-07-20 16:05:17 +00:00
// Exports: bundleContainsNameplates, isValidCollectiblesBundle, isValidCollectiblesBundleItems
2026-07-29 08:29:29 +00:00
// Module 8693 (isValidCollectiblesBundle)
const result = require("set").fileFinishedImporting("modules/collectibles/utils/bundleUtils.tsx");
export const isValidCollectiblesBundle = function isValidCollectiblesBundle(items) {
2026-07-20 16:05:17 +00:00
let firstAvatarDecoration;
let firstNameplate;
let firstProfileEffect;
2026-07-29 08:29:29 +00:00
const itemsSortingHat = new require(8046) /* firstAvatarDecoration */.ItemsSortingHat(items.items);
({ firstProfileEffect, firstAvatarDecoration, firstNameplate } = itemsSortingHat);
let tmp2 = null != firstAvatarDecoration && null != firstProfileEffect && null == firstNameplate;
if (!tmp2) {
tmp2 = null != firstAvatarDecoration && null != firstProfileEffect && null != firstNameplate;
const tmp3 = null != firstAvatarDecoration && null != firstProfileEffect && null != firstNameplate;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
};
export const isValidCollectiblesBundleItems = function isValidCollectiblesBundleItems(items) {
2026-07-29 08:29:29 +00:00
let firstAvatarDecoration;
let firstNameplate;
let firstProfileEffect;
const itemsSortingHat = new require(8046) /* firstAvatarDecoration */.ItemsSortingHat(items);
({ firstProfileEffect, firstAvatarDecoration, firstNameplate } = itemsSortingHat);
let tmp2 = null != firstAvatarDecoration && null != firstProfileEffect && null == firstNameplate;
if (!tmp2) {
tmp2 = null != firstAvatarDecoration && null != firstProfileEffect && null != firstNameplate;
const tmp3 = null != firstAvatarDecoration && null != firstProfileEffect && null != firstNameplate;
2026-07-20 16:05:17 +00:00
}
return tmp2;
};
2026-07-29 08:29:29 +00:00
export const bundleContainsNameplates = function bundleContainsNameplates(items) {
let firstAvatarDecoration;
let firstProfileEffect;
let isBundleProductResult = require(5810) /* getItemRecordsFromPurchases */.isBundleProduct(items);
if (isBundleProductResult) {
items = items.items;
const itemsSortingHat = new require(8046) /* firstAvatarDecoration */.ItemsSortingHat(items);
({ firstProfileEffect, firstAvatarDecoration } = itemsSortingHat);
isBundleProductResult = null != itemsSortingHat.firstNameplate;
}
return isBundleProductResult;
};