59 lines
2.7 KiB
TypeScript
59 lines
2.7 KiB
TypeScript
// Module ID: 1389
|
|
// Function ID: 1390
|
|
// Name: getVersionedDismissibleContentCurrentVersion
|
|
// Dependencies: [1390, 5356, 1377, 13504, 13505, 1954, 13506, 1404, 2]
|
|
// Exports: getVersionedDismissibleContentCurrentVersion
|
|
|
|
// Module 1389 (getVersionedDismissibleContentCurrentVersion)
|
|
import DismissibleContent from "DismissibleContent" /* 1377 */;
|
|
import closure_2 from "participantFromServer" /* 1390 */;
|
|
import closure_3 from "getMarketingBySurface" /* 5356 */;
|
|
|
|
require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/dismissible_content/VersionedDismissibleContentUtils.tsx");
|
|
|
|
export const getVersionedDismissibleContentCurrentVersion = function getVersionedDismissibleContentCurrentVersion(closure_0) {
|
|
if (DismissibleContent.DismissibleContent.COLLECTIBLES_SHOP_ENTRY_MARKETING === closure_0) {
|
|
marketingBySurface = marketingBySurface.getMarketingBySurface(tmp(13504).CollectiblesMarketingSurface.MOBILE_SHOP_BUTTON);
|
|
let num5;
|
|
if (marketingBySurface != null) {
|
|
num5 = marketingBySurface.version;
|
|
}
|
|
if (num5 == null) {
|
|
num5 = 0;
|
|
}
|
|
return num5;
|
|
} else if (tmp(1377).DismissibleContent.ACTIVITIES_VOICE_LAUNCHER_BADGE === closure_0) {
|
|
let tmpResult = tmp(13505);
|
|
const obj = { storeState: null, surface: null };
|
|
obj[0] = state.getState();
|
|
obj[1] = tmp(1954).EmbeddedActivitySurfaces.VOICE_LAUNCHER;
|
|
return tmpResult.getNewestBadgeableVersion(obj);
|
|
} else {
|
|
if (tmp(1377).DismissibleContent.GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK !== closure_0) {
|
|
if (tmp(1377).DismissibleContent.GUILD_POWERUP_NEW_PERK_AVAILABLE_BADGE !== closure_0) {
|
|
if (tmp(1377).DismissibleContent.COLLECTIBLES_SHOP_WIDE_BANNER === closure_0) {
|
|
tmpResult = tmp(13506);
|
|
return tmpResult.getWideBannerDismissibleContentVersion();
|
|
} else {
|
|
if (tmp(1377).DismissibleContent.GAME_SHOP_ANNOUNCEMENT_MODAL !== closure_0) {
|
|
if (tmp(1377).DismissibleContent.SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE !== closure_0) {
|
|
if (tmp(1377).DismissibleContent.SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA !== closure_0) {
|
|
if (tmp(1377).DismissibleContent.COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER !== closure_0) {
|
|
if (tmp(1377).DismissibleContent.COLLECTIBLES_SHOP_GAME_SERVER_HOSTING_BANNER === closure_0) {
|
|
return 0;
|
|
} else {
|
|
tmp(1404).assertUnreachable(closure_0, { andFail: false });
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
};
|