Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
56 lines
2.5 KiB
TypeScript
56 lines
2.5 KiB
TypeScript
// Module ID: 1955
|
|
// Function ID: 1956
|
|
// Name: VersionedDismissibleContentUtils
|
|
// Dependencies: [1956, 7636, 1943, 14061, 14062, 1894, 14063, 1969, 2]
|
|
// Exports: getVersionedDismissibleContentCurrentVersion
|
|
|
|
// Module 1955 (VersionedDismissibleContentUtils)
|
|
import dismissible_content from "dismissible_content" /* 1943 */;
|
|
import EmbeddedActivitiesStore from "EmbeddedActivitiesStore" /* 1956 */;
|
|
import CollectiblesMarketingsStore from "CollectiblesMarketingsStore" /* 7636 */;
|
|
|
|
require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/dismissible_content/VersionedDismissibleContentUtils.tsx");
|
|
|
|
export const getVersionedDismissibleContentCurrentVersion = function getVersionedDismissibleContentCurrentVersion(id) {
|
|
if (dismissible_content.DismissibleContent.COLLECTIBLES_SHOP_ENTRY_MARKETING === id) {
|
|
const marketingBySurface = CollectiblesMarketingsStore.getMarketingBySurface(tmp(14061).CollectiblesMarketingSurface.MOBILE_SHOP_BUTTON);
|
|
let num5;
|
|
if (marketingBySurface != null) {
|
|
num5 = marketingBySurface.version;
|
|
}
|
|
if (num5 == null) {
|
|
num5 = 0;
|
|
}
|
|
return num5;
|
|
} else if (tmp(1943).DismissibleContent.ACTIVITIES_VOICE_LAUNCHER_BADGE === id) {
|
|
const obj = { storeState: EmbeddedActivitiesStore.getState(), surface: tmp(1894).EmbeddedActivitySurfaces.VOICE_LAUNCHER };
|
|
return tmp(14062).getNewestBadgeableVersion(obj);
|
|
} else {
|
|
if (tmp(1943).DismissibleContent.GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK !== id) {
|
|
if (tmp(1943).DismissibleContent.GUILD_POWERUP_NEW_PERK_AVAILABLE_BADGE !== id) {
|
|
if (tmp(1943).DismissibleContent.COLLECTIBLES_SHOP_WIDE_BANNER === id) {
|
|
return tmp(14063).getWideBannerDismissibleContentVersion();
|
|
} else {
|
|
if (tmp(1943).DismissibleContent.GAME_SHOP_ANNOUNCEMENT_MODAL !== id) {
|
|
if (tmp(1943).DismissibleContent.SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE !== id) {
|
|
if (tmp(1943).DismissibleContent.SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA !== id) {
|
|
if (tmp(1943).DismissibleContent.COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER !== id) {
|
|
if (tmp(1943).DismissibleContent.COLLECTIBLES_SHOP_GAME_SERVER_HOSTING_BANNER === id) {
|
|
return 0;
|
|
} else {
|
|
tmp(1969).assertUnreachable(id, { andFail: false });
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
};
|