Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
57 lines
2.2 KiB
TypeScript
57 lines
2.2 KiB
TypeScript
// Module ID: 11634
|
|
// Function ID: 11635
|
|
// Name: IosAttributionEligibility
|
|
// Dependencies: [11635, 1364, 7807, 11637, 2]
|
|
// Exports: getIosAttributionClickFramework, isCampaignIosAttributionEnabled, isIosAttributionEligible
|
|
|
|
// Module 11634 (IosAttributionEligibility)
|
|
import PlatformUtils from "PlatformUtils" /* 1364 */;
|
|
import QuestDataUtils from "QuestDataUtils" /* 7807 */;
|
|
import apexExperiment from "apexExperiment" /* 11635 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/ads/ios_attribution/IosAttributionEligibility.tsx");
|
|
|
|
export const isIosAttributionEligible = function isIosAttributionEligible() {
|
|
const IosAttributionFeatureGate = apexExperiment.IosAttributionFeatureGate;
|
|
let enabled = IosAttributionFeatureGate.getConfig({ location: "quest_ios_attribution" }).enabled;
|
|
if (enabled) {
|
|
enabled = PlatformUtils.isIOS();
|
|
const tmpResult = PlatformUtils;
|
|
}
|
|
return enabled;
|
|
};
|
|
export const isCampaignIosAttributionEnabled = function isCampaignIosAttributionEnabled(sourceQuestContent, item) {
|
|
const adContext = QuestDataUtils.getAdContext(sourceQuestContent, item);
|
|
let prop;
|
|
if (adContext != null) {
|
|
prop = adContext.is_campaign_ios_attribution_enabled;
|
|
}
|
|
return true === prop;
|
|
};
|
|
export const getIosAttributionClickFramework = function getIosAttributionClickFramework(arg0, sourceQuestContent, adContentId) {
|
|
const IosAttributionFeatureGate = apexExperiment.IosAttributionFeatureGate;
|
|
let enabled = IosAttributionFeatureGate.getConfig({ location: "quest_ios_attribution" }).enabled;
|
|
if (enabled) {
|
|
enabled = tmp(1364).isIOS();
|
|
const tmpResult = tmp(1364);
|
|
}
|
|
let activeIosAttributionFramework = null;
|
|
if (enabled) {
|
|
activeIosAttributionFramework = null;
|
|
if (arg0) {
|
|
const adContext = tmp(7807).getAdContext(sourceQuestContent, adContentId);
|
|
let prop;
|
|
if (adContext != null) {
|
|
prop = adContext.is_campaign_ios_attribution_enabled;
|
|
}
|
|
activeIosAttributionFramework = null;
|
|
if (true === prop) {
|
|
activeIosAttributionFramework = tmp(11637).getActiveIosAttributionFramework();
|
|
const tmpResult4 = tmp(11637);
|
|
}
|
|
const tmpResult3 = tmp(7807);
|
|
}
|
|
}
|
|
return activeIosAttributionFramework;
|
|
};
|