module.exports = "(function(e,a,n){var i=n(5894),c=n(4527),t=n(9133),r=n(6457),s=c.get(\"stores/change_data\");a.translateDecisionToCampaignDecision=function(e){return o(i.cloneDeep(e),{layerId:\"campaignId\",isLayerHoldback:\"isCampaignHoldback\"})},a.translateLayerEventToCampaignEvent=function(e){var c={};return r.defineProperty(c,\"campaign\",(function(){var c=function(e){var n=i.cloneDeep(e);return n.changes&&(n.changes=i.map(n.changes,a.dereferenceChangeId)),n.experiments&&i.each(n.experiments,(function(e){e.changes&&(e.changes=i.map(e.changes,a.dereferenceChangeId)),e.variations&&i.each(e.variations,(function(e){e.actions&&i.each(e.actions,(function(e){e.changes&&(e.changes=i.map(e.changes,a.dereferenceChangeId))}))}))})),n}(e.data.layer);return __INVARIANT__&&n(2048).isType(\"Campaign\",c),c}),\"campaignEvent\"),c.decisionTicket=e.data.decisionTicket,c.decision=this.translateDecisionToCampaignDecision(e.data.decision),c.audiences=e.data.audiences,{type:\"lifecycle\",name:\"campaignDecided\",data:c}},a.translateViewActivatedToPageActivated=function(e){return{type:\"lifecycle\",name:\"pageActivated\",data:{page:e.data.view}}},a.dereferenceChangeId=function(e){var a=s.getChange(e);return a?t.safeReference(a):(__INVARIANT__&&n(2048).isType(\"Change\",e),e)};var o=function(e,a){var n=i.omit(e,i.keys(a));return i.each(a,(function(a,i){n[a]=e[i]})),n}})";