2026-09-05 10:56:28 +00:00
|
|
|
// Module ID: 15018
|
|
|
|
|
// Function ID: 15019
|
2026-09-04 17:41:35 +00:00
|
|
|
// Name: fetchCustomAppStoreOverlayContent
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [11489, 11496, 11498, 2]
|
2026-09-04 17:41:35 +00:00
|
|
|
// Exports: canOpenCustomAppStoreOverlayFromCta, prefetchCustomAppStoreOverlayContent
|
2026-09-02 09:53:35 +00:00
|
|
|
|
2026-09-05 10:56:28 +00:00
|
|
|
// Module 15018 (fetchCustomAppStoreOverlayContent)
|
2026-09-02 09:53:35 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-09-05 10:56:28 +00:00
|
|
|
import apexExperiment from "apexExperiment" /* 11489 */;
|
|
|
|
|
import supportedConsoles from "supportedConsoles" /* 11496 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
|
2026-09-04 17:41:35 +00:00
|
|
|
function fetchCustomAppStoreOverlayContent(cta) {
|
2026-09-02 09:53:35 +00:00
|
|
|
const CustomAppStoreOverlayExperiment = apexExperiment.CustomAppStoreOverlayExperiment;
|
|
|
|
|
let enabled = CustomAppStoreOverlayExperiment.getConfig({ location: "quest_open_game_link" }).enabled;
|
|
|
|
|
if (enabled) {
|
2026-09-05 10:56:28 +00:00
|
|
|
let tmpResult = tmp(11496);
|
2026-09-02 09:53:35 +00:00
|
|
|
enabled = null != tmpResult.getInlineStoreParamsFromCta(cta);
|
|
|
|
|
}
|
|
|
|
|
let inlineStoreParamsFromCta = null;
|
|
|
|
|
if (enabled) {
|
2026-09-05 10:56:28 +00:00
|
|
|
tmpResult = tmp(11496);
|
2026-09-02 09:53:35 +00:00
|
|
|
inlineStoreParamsFromCta = tmpResult.getInlineStoreParamsFromCta(cta);
|
|
|
|
|
}
|
|
|
|
|
if (null == inlineStoreParamsFromCta) {
|
|
|
|
|
let resolved = Promise.resolve(null);
|
|
|
|
|
} else {
|
2026-09-05 10:56:28 +00:00
|
|
|
const tmpResult1 = tmp(11498);
|
|
|
|
|
let url = tmp(11496).getDirectAppStoreLinkFromCta(cta);
|
2026-09-02 09:53:35 +00:00
|
|
|
if (url == null) {
|
|
|
|
|
url = cta.url;
|
|
|
|
|
}
|
|
|
|
|
resolved = tmpResult1.getAppStoreOverlayContent(inlineStoreParamsFromCta, url);
|
2026-09-05 10:56:28 +00:00
|
|
|
const tmpResult2 = tmp(11496);
|
2026-09-02 09:53:35 +00:00
|
|
|
}
|
|
|
|
|
return resolved;
|
2026-09-04 17:41:35 +00:00
|
|
|
}
|
|
|
|
|
const result = set.fileFinishedImporting("modules/quests/utils/QuestCustomAppStoreOverlayUtils.native.tsx");
|
|
|
|
|
|
|
|
|
|
export const canOpenCustomAppStoreOverlayFromCta = function canOpenCustomAppStoreOverlayFromCta(cta) {
|
|
|
|
|
const CustomAppStoreOverlayExperiment = apexExperiment.CustomAppStoreOverlayExperiment;
|
|
|
|
|
let enabled = CustomAppStoreOverlayExperiment.getConfig({ location: "quest_open_game_link" }).enabled;
|
|
|
|
|
if (enabled) {
|
|
|
|
|
enabled = null != supportedConsoles.getInlineStoreParamsFromCta(cta);
|
|
|
|
|
const tmpResult = supportedConsoles;
|
|
|
|
|
}
|
|
|
|
|
return enabled;
|
|
|
|
|
};
|
|
|
|
|
export { fetchCustomAppStoreOverlayContent };
|
|
|
|
|
export const prefetchCustomAppStoreOverlayContent = function prefetchCustomAppStoreOverlayContent(cta) {
|
|
|
|
|
const CustomAppStoreOverlayExperiment = apexExperiment.CustomAppStoreOverlayExperiment;
|
|
|
|
|
let enabled = CustomAppStoreOverlayExperiment.getConfig({ location: "quest_open_game_link" }).enabled;
|
|
|
|
|
if (enabled) {
|
|
|
|
|
enabled = null != supportedConsoles.getInlineStoreParamsFromCta(cta);
|
|
|
|
|
const tmpResult = supportedConsoles;
|
|
|
|
|
}
|
|
|
|
|
if (enabled) {
|
|
|
|
|
fetchCustomAppStoreOverlayContent(cta).catch(() => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
const promise = fetchCustomAppStoreOverlayContent(cta);
|
|
|
|
|
}
|
2026-09-02 09:53:35 +00:00
|
|
|
};
|