Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
42 lines
2.4 KiB
TypeScript
42 lines
2.4 KiB
TypeScript
// Module ID: 8292
|
|
// Function ID: 8293
|
|
// Name: useTrackCollectiblesItemTryOut
|
|
// Dependencies: [19, 7652, 1074, 1374, 1890, 563, 1241, 7664, 2]
|
|
// Exports: default
|
|
|
|
// Module 8292 (useTrackCollectiblesItemTryOut)
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import Constants from "Constants" /* 1074 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
|
|
import CollectiblesItemType from "CollectiblesItemType" /* 1890 */;
|
|
import CollectiblesUtils from "CollectiblesUtils" /* 7664 */;
|
|
import CollectiblesCategoryStore from "CollectiblesCategoryStore" /* 7652 */;
|
|
import PremiumConstants from "PremiumConstants" /* 1374 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
_mod19.useCallback;
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
({ AnalyticsPremiumFeatureNames, AnalyticsPremiumFeatureTiers: metroRequire } = PremiumConstants);
|
|
let obj = { [CollectiblesItemType.CollectiblesItemType.AVATAR_DECORATION]: AnalyticsPremiumFeatureNames.AVATAR_DECORATION, [CollectiblesItemType.CollectiblesItemType.PROFILE_EFFECT]: AnalyticsPremiumFeatureNames.PROFILE_EFFECT, [CollectiblesItemType.CollectiblesItemType.PROFILE_FRAME]: undefined, [CollectiblesItemType.CollectiblesItemType.NAMEPLATE]: undefined, [CollectiblesItemType.CollectiblesItemType.NONE]: undefined, [CollectiblesItemType.CollectiblesItemType.BUNDLE]: undefined, [CollectiblesItemType.CollectiblesItemType.VARIANTS_GROUP]: undefined, [CollectiblesItemType.CollectiblesItemType.EXTERNAL_SKU]: undefined };
|
|
const result = size.fileFinishedImporting("modules/collectibles/hooks/useTrackCollectiblesItemTryOut.tsx");
|
|
|
|
export default function useTrackCollectiblesItemTryOut(location_stack) {
|
|
_require = location_stack;
|
|
const items = [CollectiblesCategoryStore];
|
|
const stateFromStores = require("useStateFromStores").useStateFromStores(items, () => products.products);
|
|
const items1 = [stateFromStores, location_stack];
|
|
return useCallback((skuId) => {
|
|
value = stateFromStores.get(skuId.skuId);
|
|
obj = AnalyticsUtilsDefault;
|
|
const obj2 = { feature_name: obj[skuId.type], feature_tier: CollectiblesUtils.isPremiumCollectiblesProduct(value) ? timestampProducer.FREE : timestampProducer.PREMIUM_STANDARD, feature_selection: null, location_stack: null };
|
|
let name;
|
|
if (value != null) {
|
|
name = value.name;
|
|
}
|
|
obj2.feature_selection = name;
|
|
obj2.location_stack = location_stack;
|
|
obj.track(AnalyticEvents.PREMIUM_FEATURE_TRY_OUT, obj2);
|
|
}, items1);
|
|
};
|