decord/source/modules/quests/utils/QuestPlatformUtils.tsx
2026-08-13 07:00:46 +00:00

555 lines
24 KiB
TypeScript

// Module ID: 10451
// Function ID: 10452
// Name: supportedConsoles
// Dependencies: [5202, 676, 7228, 5209, 9566, 9567, 9571, 7233, 7222, 10452, 1236, 500, 10442, 4308, 10544, 1231, 10545, 4052, 10547, 10549, 514, 6059, 709, 2]
// Exports: getExpiredCredentialsHintMessage, getPlatformTypeForHintMessage, isQuestSupportedOnWeb, openAdGameLinkDirectly, openAddConsoleConnectionModal, openAuthorizationConnectionModal, openConsoleConnectionSettings, openGameLinkDirectly, openSingleConsoleConnectionModal, supportedTaskPlatforms
// Module 10451 (supportedConsoles)
import { QuestTaskPlatform } from "QuestsExperimentLocations";
import ME from "ME";
let c4;
let c5;
let closure_6;
let error;
function supportedConsoles(quest) {
const keys = Object.keys(quest.config.taskConfigV2.tasks);
const items = [];
for (const item10013 of keys) {
let tmp2 = require;
let tmp3 = dependencyMap;
if (require(5209) /* set */.FirstPartyQuestTaskTypes.PLAY_ON_XBOX === item10013) {
let tmp6 = constants2;
let arr = items.push(constants2.XBOX);
} else if (tmp2(5209).FirstPartyQuestTaskTypes.PLAY_ON_PLAYSTATION === item10013) {
let tmp4 = constants2;
arr = items.push(constants2.PLAYSTATION);
}
continue;
}
return items;
}
function getDirectAppStoreLinkFromCta(cta) {
if (obj.isIOS()) {
const ios = cta.ios;
let iosAppId;
if (ios != null) {
iosAppId = ios.iosAppId;
}
if (null != iosAppId) {
iosAppId = cta.ios.iosAppId;
const iosAppId2 = cta.ios.iosAppId;
if (iosAppId.startsWith("id")) {
let combined = iosAppId2;
} else {
const _HermesInternal = HermesInternal;
combined = "id" + iosAppId2;
}
const _HermesInternal2 = HermesInternal;
let combined1 = "https://apps.apple.com/app/" + combined;
}
return combined1;
} else {
let tmpResult = tmp(500);
}
tmpResult = tmp(500);
if (tmpResult.isAndroid()) {
const android = cta.android;
let androidAppId;
if (android != null) {
androidAppId = android.androidAppId;
}
let combined2 = null;
if (null != androidAppId) {
const _HermesInternal3 = HermesInternal;
combined2 = "https://play.google.com/store/apps/details?id=" + cta.android.androidAppId;
}
} else {
combined2 = null;
const tmpResult1 = tmp(500);
}
combined1 = combined2;
}
function getInlineStoreParamsFromCta(cta) {
let obj = require(500) /* set */;
if (obj.isAndroid()) {
const android = cta.android;
let androidAppId;
if (android != null) {
androidAppId = android.androidAppId;
}
if (null != androidAppId) {
obj = { url: null, os: "android", storeAppId: null, appId: null };
const _HermesInternal2 = HermesInternal;
obj[0] = "https://play.google.com/d?id=" + cta.android.androidAppId;
obj[2] = cta.android.androidAppId;
return obj;
}
}
if (tmpResult.isIOS()) {
const ios = cta.ios;
let iosAppId;
if (ios != null) {
iosAppId = ios.iosAppId;
}
if (null != iosAppId) {
iosAppId = cta.ios.iosAppId;
const iosAppId1 = cta.ios.iosAppId;
if (iosAppId.startsWith("id")) {
let substr = iosAppId1.slice(2);
} else {
substr = iosAppId1;
}
obj = { url: null, os: "ios", storeAppId: null, appId: null };
const _HermesInternal = HermesInternal;
obj[0] = "https://apps.apple.com/app/id" + substr;
obj[2] = substr;
const _parseInt = parseInt;
obj[3] = parseInt(substr, 10);
return obj;
}
}
return null;
}
({ AnalyticEvents: c4, ComponentActions: c5, PlatformTypes: closure_6, UserSettingsSections: error } = ME);
let result = require("getApplicationIdsByTaskTypes").fileFinishedImporting("modules/quests/utils/QuestPlatformUtils.tsx");
export const supportedTaskPlatforms = function supportedTaskPlatforms(closure_0) {
let obj = require(7228) /* getApplicationIdsByTaskTypes */;
obj = { quest: closure_0 };
let hasPlayOnDesktopTaskResult = obj.hasPlayOnDesktopTask(obj);
if (!hasPlayOnDesktopTaskResult) {
let tmpResult = tmp(7228);
obj = { quest: null };
obj[0] = closure_0;
hasPlayOnDesktopTaskResult = tmpResult.hasStreamOnDesktopTask(obj);
}
if (!hasPlayOnDesktopTaskResult) {
tmpResult = tmp(7228);
hasPlayOnDesktopTaskResult = tmpResult.hasAchievementInGameTask(closure_0);
}
const items = [];
const tmpResult1 = require(7228) /* getApplicationIdsByTaskTypes */;
if (hasPlayOnDesktopTaskResult) {
items.push(QuestTaskPlatform.DESKTOP);
}
if (hasSomeConsoleTasksResult) {
items.push(QuestTaskPlatform.CONSOLE);
}
return items;
};
export { supportedConsoles };
export const isQuestSupportedOnWeb = function isQuestSupportedOnWeb(userStatus) {
let hasWatchVideoTasksResult = require(7228) /* getApplicationIdsByTaskTypes */.hasWatchVideoTasks(userStatus);
const obj = require(7228) /* getApplicationIdsByTaskTypes */;
if (!hasWatchVideoTasksResult) {
hasWatchVideoTasksResult = obj2.hasPlayActivityTask(userStatus);
}
return hasWatchVideoTasksResult;
};
export const PlayQuestPlatform = { DESKTOP: "desktop", XBOX: "xbox", PLAYSTATION: "playstation" };
export const getPlatformTypeForHintMessage = function getPlatformTypeForHintMessage(connected_account_type) {
if ("xbox" === connected_account_type.connected_account_type) {
let PLAYSTATION = constants2.XBOX;
} else {
PLAYSTATION = constants2.PLAYSTATION;
}
return PLAYSTATION;
};
export const openAuthorizationConnectionModal = function openAuthorizationConnectionModal(platformType, ctaContent) {
const quest = platformType.quest;
let obj = require(9566) /* apexExperiment */;
if (obj.shouldMigrateToAdAnalyticsInterface(require(9566) /* apexExperiment */.AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL, "open_authorization_connection_modal")) {
let tmpResult = tmp(9567);
obj = { type: null, adCreativeType: null, adCreativeId: null, questContentCTA: null, surfaceId: null, sourceQuestContent: null, impressionId: null };
obj[0] = tmp(9571).AdUserActionType.CLICK_INTERNAL;
obj[1] = tmp(7233).AdCreativeType.QUEST;
obj[2] = quest.id;
({ ctaContent: obj5[3], content: obj5[4], sourceQuestContent: obj5[5], impressionId: obj5[6] } = ctaContent);
tmpResult.captureAdUserAction(obj);
} else {
tmpResult = tmp(7222);
obj = { questId: null, questContent: null, sourceQuestContent: null, questContentCTA: null, impressionId: null };
obj[0] = quest.id;
({ content: obj3[1], sourceQuestContent: obj3[2], ctaContent: obj3[3], impressionId: obj3[4] } = ctaContent);
const result = tmpResult.trackQuestContentClicked(obj);
}
importDefault(10452)({ platformType: platformType.platformType, location: ctaContent.ctaContent });
};
export const getExpiredCredentialsHintMessage = function getExpiredCredentialsHintMessage(connected_account_type) {
if ("xbox" === connected_account_type.connected_account_type) {
let PLAYSTATION = constants2.XBOX;
let tmp = constants2;
} else {
tmp = constants2;
PLAYSTATION = constants2.PLAYSTATION;
}
if (PLAYSTATION === tmp.XBOX) {
let iDiwby = require(1236) /* getSystemLocale */.t["mytEv+"];
} else {
iDiwby = require(1236) /* getSystemLocale */.t.iDiwby;
}
return iDiwby;
};
export const openGameLinkDirectly = function openGameLinkDirectly(quest, arg1) {
let _require = quest;
let closure_1 = arg1;
let obj = _require(10442);
const ctaConfig = quest.config.ctaConfig;
let tmp4 = null;
const ctaLink = obj.getCtaLink(quest.config);
if (null != ctaConfig) {
obj = { url: null, android: null, ios: null };
let tmpResult = tmp(10442);
obj[0] = tmpResult.getCtaLink(quest.config);
({ android: obj2[1], ios: obj2[2] } = ctaConfig);
tmp4 = getDirectAppStoreLinkFromCta(obj);
}
let tmp6 = ctaLink;
if (null != tmp4) {
tmp6 = tmp4;
}
let tmp7 = tmp6;
if ((function urlHasClickId(arg0) {
try {
const _URL = URL;
const uRL = new URL(arg0);
const searchParams = uRL.searchParams;
return searchParams.has("dclid");
} catch (err) {
return false;
}
})(tmp6)) {
tmpResult = tmp(514);
const v4Result = tmpResult.v4();
tmp7 = (function setClickIdOnUrl(arg0, v4Result) {
try {
const _URL = URL;
const str = new URL(arg0);
const searchParams = str.searchParams;
const result = searchParams.set("dclid", v4Result);
return str.toString();
} catch (err) {
return tmp;
}
})(tmp6, v4Result);
}
if (tmpResult1.shouldMigrateToAdAnalyticsInterface(_require(9566).AdAnalyticsInterfaceExperimentStep.STEP_3_CLICKED_EXTERNAL, "open_game_link_directly")) {
obj = { type: null, adCreativeType: null, adCreativeId: null, questContentCTA: null, surfaceId: null, sourceQuestContent: null, questContentPosition: null, impressionId: null, clickId: null };
obj[0] = tmp(9571).AdUserActionType.CLICK_EXTERNAL_ADVERTISER_CTA;
obj[1] = tmp(7233).AdCreativeType.QUEST;
obj[2] = quest.id;
({ ctaContent: obj9[3], content: obj9[4], sourceQuestContent: obj9[5], position: obj9[6], impressionId: obj9[7] } = arg1);
obj[8] = tmp8;
tmp(9567).captureAdUserAction(obj);
const tmpResult2 = tmp(9567);
} else {
const obj1 = { questId: null, questContent: null, questContentCTA: null, questContentPosition: null, impressionId: null, sourceQuestContent: null, clickId: null };
obj1[0] = quest.id;
({ content: obj7[1], ctaContent: obj7[2], position: obj7[3], impressionId: obj7[4], sourceQuestContent: obj7[5] } = arg1);
obj1[6] = tmp8;
let result = tmp(7222).trackQuestContentClicked(obj1);
const tmpResult3 = tmp(7222);
}
const ComponentDispatch = tmp(1231).ComponentDispatch;
ComponentDispatch.dispatch(constants.QUEST_GAME_LINK_OPENED);
const ctaConfig2 = quest.config.ctaConfig;
let tmp13 = null;
if (null != ctaConfig2) {
const obj2 = { url: null, android: null, ios: null };
obj2[0] = tmp(10442).getCtaLink(quest.config);
({ android: obj10[1], ios: obj10[2] } = ctaConfig2);
tmp13 = getInlineStoreParamsFromCta(obj2);
const tmpResult4 = tmp(10442);
}
_require = tmp7;
closure_1 = tmp4;
const dependencyMap = tmp13;
function trackOverlayEvent(event, arg1, time_spent_ms) {
return quest(tmp13[8]).trackAppStoreOverlayEvent(quest, closure_1, arg1, event, time_spent_ms);
}
function openNativeAppStoreOrUrl() {
let adCreativeType;
let closure_2;
const AppStoreBottomSheetOverlayFeatureGate = url(10545).AppStoreBottomSheetOverlayFeatureGate;
if (!AppStoreBottomSheetOverlayFeatureGate.getConfig({ location: "quest_open_game_link" }).enabled) {
if (null != adCreativeType) {
if (null != dependencyMap) {
let closure_0 = str;
({ clearAppStoreOverlayOpen: adCreativeType, setAppStoreOverlayOpen: closure_2 } = tmp(10544));
str = tmp8.appId;
str = undefined;
if (str != null) {
str = str.toString();
}
const result = tmp(4308).openPlayStoreInlineInstall(tmp8.url, str, (arg0) => {
callback2();
callback(outer1_4.QUEST_APP_STORE_OVERLAY_CLOSED, str, arg0);
const ComponentDispatch = callback(outer1_2[15]).ComponentDispatch;
ComponentDispatch.dispatch(outer1_5.QUEST_APP_STORE_OVERLAY_FINISHED);
});
const tmpResult = tmp(10544);
result.then((arg0) => {
if (arg0) {
const obj = { trackOverlayEvent: null };
obj[0] = function trackOverlayEvent(arg0, arg1) {
return callback(arg0, closure_3, arg1);
};
callback3(obj);
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_SUCCEEDED, str);
} else {
callback2();
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_FAILED, str);
const ComponentDispatch = callback(outer1_2[15]).ComponentDispatch;
ComponentDispatch.dispatch(outer1_5.QUEST_APP_STORE_OVERLAY_FINISHED);
}
}).catch(() => {
callback2();
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_FAILED, str);
const ComponentDispatch = callback(outer1_2[15]).ComponentDispatch;
ComponentDispatch.dispatch(outer1_5.QUEST_APP_STORE_OVERLAY_FINISHED);
});
const nextPromise = result.then((arg0) => {
if (arg0) {
const obj = { trackOverlayEvent: null };
obj[0] = function trackOverlayEvent(arg0, arg1) {
return callback(arg0, closure_3, arg1);
};
callback3(obj);
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_SUCCEEDED, str);
} else {
callback2();
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_FAILED, str);
const ComponentDispatch = callback(outer1_2[15]).ComponentDispatch;
ComponentDispatch.dispatch(outer1_5.QUEST_APP_STORE_OVERLAY_FINISHED);
}
});
}
}
}
adCreativeType(4052)(closure_0);
}
const CustomAppStoreOverlayExperiment = tmp(10545).CustomAppStoreOverlayExperiment;
if (CustomAppStoreOverlayExperiment.getConfig({ location: "quest_open_game_link" }).enabled) {
if (null != tmp13) {
constants = tmp(10549).openAppStoreOverlayBottomSheet;
const appStoreOverlayContent = tmp(10547).getAppStoreOverlayContent(tmp13, tmp7);
appStoreOverlayContent.then((arg0) => {
if (null != arg0) {
callback(arg0, trackOverlayEvent);
} else {
openNativeAppStoreOrUrl();
}
}).catch(() => {
openNativeAppStoreOrUrl();
});
const nextPromise = appStoreOverlayContent.then((arg0) => {
if (null != arg0) {
callback(arg0, trackOverlayEvent);
} else {
openNativeAppStoreOrUrl();
}
});
}
}
const result1 = openNativeAppStoreOrUrl();
};
export const openAdGameLinkDirectly = function openAdGameLinkDirectly(adContentId, arg1) {
adContentId = adContentId.adContentId;
let url = adContentId;
let adCreativeType = adContentId.adCreativeType;
const cta = adContentId.cta;
let dependencyMap = arg1;
url = cta.url;
const tmp = getDirectAppStoreLinkFromCta(cta);
if (null != tmp) {
url = tmp;
}
let obj = url(9566);
if (obj.shouldMigrateToAdAnalyticsInterface(url(9566).AdAnalyticsInterfaceExperimentStep.STEP_3_CLICKED_EXTERNAL, "open_ad_game_link_directly")) {
let tmp2Result = tmp2(9567);
obj = { type: null, adCreativeType: null, adCreativeId: null, questContentCTA: null, surfaceId: null, sourceQuestContent: null, questContentPosition: null, impressionId: null };
obj[0] = tmp2(9571).AdUserActionType.CLICK_EXTERNAL_ADVERTISER_CTA;
obj[1] = adCreativeType;
obj[2] = adContentId;
({ ctaContent: obj5[3], content: obj5[4], sourceQuestContent: obj5[5], position: obj5[6], impressionId: obj5[7] } = arg1);
tmp2Result.captureAdUserAction(obj);
} else {
tmp2Result = tmp2(7222);
obj = { adContentId: null, adCreativeType: null, questContent: null, questContentCTA: null, questContentPosition: null, impressionId: null, sourceQuestContent: null };
obj[0] = adContentId;
obj[1] = adCreativeType;
({ content: obj3[2], ctaContent: obj3[3], position: obj3[4], impressionId: obj3[5], sourceQuestContent: obj3[6] } = arg1);
let result = tmp2Result.trackAdContentClicked(obj);
}
let ComponentDispatch = tmp2(1231).ComponentDispatch;
ComponentDispatch.dispatch(constants.QUEST_GAME_LINK_OPENED);
const tmp7 = getInlineStoreParamsFromCta(cta);
adCreativeType = tmp;
dependencyMap = tmp7;
function trackOverlayEvent(event, arg1, time_spent_ms) {
let obj = url(7222);
obj = { adContentId: url, adCreativeType };
return obj.trackAdContentAppStoreOverlayEvent(obj, dependencyMap, arg1, event, time_spent_ms);
}
constants = undefined;
function openNativeAppStoreOrUrl() {
let adCreativeType;
let closure_2;
const AppStoreBottomSheetOverlayFeatureGate = url(10545).AppStoreBottomSheetOverlayFeatureGate;
if (!AppStoreBottomSheetOverlayFeatureGate.getConfig({ location: "quest_open_game_link" }).enabled) {
if (null != adCreativeType) {
if (null != dependencyMap) {
let closure_0 = str;
({ clearAppStoreOverlayOpen: adCreativeType, setAppStoreOverlayOpen: closure_2 } = tmp(10544));
str = tmp8.appId;
str = undefined;
if (str != null) {
str = str.toString();
}
const result = tmp(4308).openPlayStoreInlineInstall(tmp8.url, str, (arg0) => {
callback2();
callback(outer1_4.QUEST_APP_STORE_OVERLAY_CLOSED, str, arg0);
const ComponentDispatch = callback(outer1_2[15]).ComponentDispatch;
ComponentDispatch.dispatch(outer1_5.QUEST_APP_STORE_OVERLAY_FINISHED);
});
const tmpResult = tmp(10544);
result.then((arg0) => {
if (arg0) {
const obj = { trackOverlayEvent: null };
obj[0] = function trackOverlayEvent(arg0, arg1) {
return callback(arg0, closure_3, arg1);
};
callback3(obj);
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_SUCCEEDED, str);
} else {
callback2();
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_FAILED, str);
const ComponentDispatch = callback(outer1_2[15]).ComponentDispatch;
ComponentDispatch.dispatch(outer1_5.QUEST_APP_STORE_OVERLAY_FINISHED);
}
}).catch(() => {
callback2();
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_FAILED, str);
const ComponentDispatch = callback(outer1_2[15]).ComponentDispatch;
ComponentDispatch.dispatch(outer1_5.QUEST_APP_STORE_OVERLAY_FINISHED);
});
const nextPromise = result.then((arg0) => {
if (arg0) {
const obj = { trackOverlayEvent: null };
obj[0] = function trackOverlayEvent(arg0, arg1) {
return callback(arg0, closure_3, arg1);
};
callback3(obj);
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_SUCCEEDED, str);
} else {
callback2();
callback(outer1_4.QUEST_APP_STORE_OVERLAY_OPEN_FAILED, str);
const ComponentDispatch = callback(outer1_2[15]).ComponentDispatch;
ComponentDispatch.dispatch(outer1_5.QUEST_APP_STORE_OVERLAY_FINISHED);
}
});
}
}
}
adCreativeType(4052)(closure_0);
}
const CustomAppStoreOverlayExperiment = tmp2(10545).CustomAppStoreOverlayExperiment;
if (CustomAppStoreOverlayExperiment.getConfig({ location: "quest_open_game_link" }).enabled) {
if (null != tmp7) {
constants = tmp2(10549).openAppStoreOverlayBottomSheet;
const appStoreOverlayContent = tmp2(10547).getAppStoreOverlayContent(tmp7, url);
appStoreOverlayContent.then((arg0) => {
if (null != arg0) {
callback(arg0, trackOverlayEvent);
} else {
openNativeAppStoreOrUrl();
}
}).catch(() => {
openNativeAppStoreOrUrl();
});
let nextPromise = appStoreOverlayContent.then((arg0) => {
if (null != arg0) {
callback(arg0, trackOverlayEvent);
} else {
openNativeAppStoreOrUrl();
}
});
}
}
const result1 = openNativeAppStoreOrUrl();
};
export const openConsoleConnectionSettings = function openConsoleConnectionSettings(quest, arg1) {
quest = quest.quest;
let obj = require(9566) /* apexExperiment */;
if (obj.shouldMigrateToAdAnalyticsInterface(require(9566) /* apexExperiment */.AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL, "open_console_connection_settings")) {
let tmpResult = tmp(9567);
obj = { type: null, adCreativeType: null, adCreativeId: null, questContentCTA: null, surfaceId: null, sourceQuestContent: null, impressionId: null, questContentPosition: null };
obj[0] = tmp(9571).AdUserActionType.CLICK_INTERNAL;
obj[1] = tmp(7233).AdCreativeType.QUEST;
obj[2] = quest.id;
({ ctaContent: obj5[3], content: obj5[4], sourceQuestContent: obj5[5], impressionId: obj5[6], position: obj5[7] } = arg1);
tmpResult.captureAdUserAction(obj);
} else {
tmpResult = tmp(7222);
obj = { questId: null, questContent: null, questContentPosition: null, questContentCTA: null, impressionId: null, sourceQuestContent: null };
obj[0] = quest.id;
({ content: obj3[1], position: obj3[2], ctaContent: obj3[3], impressionId: obj3[4], sourceQuestContent: obj3[5] } = arg1);
const result = tmpResult.trackQuestContentClicked(obj);
}
require(6059) /* openUserSettings */.openUserSettings({ screen: constants3.CONNECTIONS });
};
export const openAddConsoleConnectionModal = function openAddConsoleConnectionModal(quest, arg1) {
quest = quest.quest;
let obj = require(9566) /* apexExperiment */;
if (obj.shouldMigrateToAdAnalyticsInterface(require(9566) /* apexExperiment */.AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL, "open_add_console_connection_modal")) {
let tmpResult = tmp(9567);
obj = { type: null, adCreativeType: null, adCreativeId: null, questContentCTA: null, surfaceId: null, sourceQuestContent: null, impressionId: null, questContentPosition: null, questContentRowIndex: null };
obj[0] = tmp(9571).AdUserActionType.CLICK_INTERNAL;
obj[1] = tmp(7233).AdCreativeType.QUEST;
obj[2] = quest.id;
({ ctaContent: obj5[3], content: obj5[4], sourceQuestContent: obj5[5], impressionId: obj5[6], position: obj5[7], rowIndex: obj5[8] } = arg1);
tmpResult.captureAdUserAction(obj);
} else {
tmpResult = tmp(7222);
obj = { questId: null, questContent: null, questContentPosition: null, questContentRowIndex: null, questContentCTA: null, impressionId: null, sourceQuestContent: null };
obj[0] = quest.id;
({ content: obj3[1], position: obj3[2], rowIndex: obj3[3], ctaContent: obj3[4], impressionId: obj3[5], sourceQuestContent: obj3[6] } = arg1);
const result = tmpResult.trackQuestContentClicked(obj);
}
const arr = supportedConsoles(quest);
if (1 === arr.length) {
const obj1 = { platformType: null };
obj1[0] = arr.at(0);
return importDefault(10452)(obj1);
} else {
const obj2 = { type: "CONNECTIONS_GRID_MODAL_SHOW", onComplete: null, includedPlatformTypes: null, includeApplicationConnections: false };
obj2[1] = function onComplete(platformType) {
return callback(table[9])({ platformType });
};
const _Set = Set;
const set = new Set(arr);
obj2[2] = set;
importDefault(709).dispatch(obj2);
}
};
export const openSingleConsoleConnectionModal = function openSingleConsoleConnectionModal(quest, arg1, platformType) {
quest = quest.quest;
let obj = require(9566) /* apexExperiment */;
if (obj.shouldMigrateToAdAnalyticsInterface(require(9566) /* apexExperiment */.AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL, "open_single_console_connection_modal")) {
let tmpResult = tmp(9567);
obj = { type: null, adCreativeType: null, adCreativeId: null, questContentCTA: null, surfaceId: null, sourceQuestContent: null, impressionId: null, questContentPosition: null, questContentRowIndex: null };
obj[0] = tmp(9571).AdUserActionType.CLICK_INTERNAL;
obj[1] = tmp(7233).AdCreativeType.QUEST;
obj[2] = quest.id;
({ ctaContent: obj5[3], content: obj5[4], sourceQuestContent: obj5[5], impressionId: obj5[6], position: obj5[7], rowIndex: obj5[8] } = arg1);
tmpResult.captureAdUserAction(obj);
} else {
tmpResult = tmp(7222);
obj = { questId: null, questContent: null, questContentPosition: null, questContentRowIndex: null, questContentCTA: null, impressionId: null, sourceQuestContent: null };
obj[0] = quest.id;
({ content: obj3[1], position: obj3[2], rowIndex: obj3[3], ctaContent: obj3[4], impressionId: obj3[5], sourceQuestContent: obj3[6] } = arg1);
const result = tmpResult.trackQuestContentClicked(obj);
}
return importDefault(10452)({ platformType });
};