module.exports = "(function(e,t,n){var r=n(5894),s=n(7358),o=n(1571),a=n(4810),c=n(7241),u=n(1993),i=[function(){return function(e){var t=e.eventTags;if(r.isEmpty(t))return a.debug(\"Not updating InterestGroup scores since page has no tags\"),void 0;t=r.map(t,(function(t,n){return{viewId:e.pageId,tagApiName:n}}));var n=u.interestGroupsAffectedByTags(t);a.debug(\"Fetching scores for InterestGroups:\",n),u.fetchScores(n).then((function(e){var t=r.map(e,(function(e,t){return{key:[c.INTEREST_GROUPS_PROFILE_PREFIX,t,\"score\"],value:e}}));a.debug(\"Setting new InterestGroup scores:\",{scores:e}),o.dispatch(s.SET_VISITOR_ATTRIBUTES,{attributes:t})})).catch((function(e){a.warn(\"InterestGroup score fetch failed:\",e)}))}}];e.exports={onPageActivated:i}})";