// Module ID: 14899 // Function ID: 14900 // Name: AdCreativeUtils // Dependencies: [5630, 2] // Exports: getCreativeAnalyticsParams, getQuestDockAdCreativeId, getQuestDockQuest // Module 14899 (AdCreativeUtils) import AdCreativeType from "AdCreativeType" /* 5630 */; import size from "module_2" /* 2 */; const result = size.fileFinishedImporting("modules/ads/utils/AdCreativeUtils.tsx"); export const getCreativeAnalyticsParams = function getCreativeAnalyticsParams(creative) { const type = creative.type; if (AdCreativeType.AdCreativeType.QUEST === type) { const obj2 = { adCreativeType: AdCreativeType.AdCreativeType.QUEST, adCreativeId: creative.quest.id }; return obj2; } else if (AdCreativeType.AdCreativeType.BOUNTY === type) { const obj = { adCreativeType: AdCreativeType.AdCreativeType.BOUNTY, adCreativeId: creative.bounty.id }; return obj; } }; export const getQuestDockQuest = function getQuestDockQuest(type) { let quest = null; if (type.type === AdCreativeType.AdCreativeType.QUEST) { quest = type.quest; } return quest; }; export const getQuestDockAdCreativeId = function getQuestDockAdCreativeId(type) { type = type.type; if (AdCreativeType.AdCreativeType.QUEST === type) { return type.quest.id; } else if (AdCreativeType.AdCreativeType.BOUNTY === type) { return type.bounty.id; } else if (AdCreativeType.AdCreativeType.NO_FILL === type) { return null; } };