{"version":3,"file":"initSendCampaignIDtoSFDC-CcPwWomQ.js","sources":["../../../../Coloplast.UI/src/shared/vanilla/initSendCampaignIDtoSFDC.js"],"sourcesContent":["import axios from 'axios';\r\nexport default async function initCampaignIdSFDC(campaignId, campaignStatus) {\r\n\tconst\r\n\t\tlanguage = document.documentElement.getAttribute('data-lang') || document.documentElement.getAttribute('lang') || 'en-US',\r\n\t\tcampaignData = {\r\n\t\t\tCampaignId: campaignId,\r\n\t\t\tCampaignStatus: campaignStatus,\r\n\t\t\tLanguage: language\r\n\t\t}\r\n\tawait axios.post('/api/sfdc/tracking/campaign', campaignData)\r\n\t\t.then(_response => {\r\n\t\t})\r\n\t\t.catch(error => {\r\n\t\t\tconsole.warn(error);\r\n\t\t})\r\n}\r\n"],"names":["initCampaignIdSFDC","campaignId","campaignStatus","language","campaignData","axios","_response","error"],"mappings":"wCACe,eAAeA,EAAmBC,EAAYC,EAAgB,CAC5E,MACCC,EAAW,SAAS,gBAAgB,aAAa,WAAW,GAAK,SAAS,gBAAgB,aAAa,MAAM,GAAK,QAClHC,EAAe,CACd,WAAYH,EACZ,eAAgBC,EAChB,SAAUC,CACV,EACF,MAAME,EAAM,KAAK,8BAA+BD,CAAY,EAC1D,KAAKE,GAAa,CACrB,CAAG,EACA,MAAMC,GAAS,CACf,QAAQ,KAAKA,CAAK,CACrB,CAAG,CACH"}