module.exports = "(function(e,i,n){var t=n(5894),a=n(4527),r=n(3896),o=n(4021),l=n(4810),u=n(8131),c=n(7152),d=a.get(\"stores/layer_data\"),s=n(2933),p=\"ClicktaleIntegrationExperienceHandler\";function f(e,i){var n=d.get(i.data.decision.layerId),a=n.integrationSettings;if(a&&!t.isUndefined(a.clicktale)){var r=function(e,i){var n=t.find(i.experiments,{id:e.experimentId});if(!n)return;var a=t.find(n.variations,{id:e.variationId});if(!a)return;return s.generateAnalyticsString(i,n,a,e.isLayerHoldback,255,!0)}(i.data.decision,n);r&&(e.push(r),l.log(\"Pushing action.applied event to Clicktale queue. Data:\",i))}}function g(e){c.getGlobal(p)(e,\"Optimizely\")}e.exports=function(){var e=[],i={queue:e,push:t.bind(e.push,e)};r.on({filter:{type:o.TYPES.ACTION,name:\"appliedAllForDecision\"},handler:t.partial(f,i)}),function(e){var i=50,n=200;u.pollFor((function(){return e=c.getGlobal(p),t.isFunction(e);var e}),n,i).then((function(){t.each(e.queue,g),e.push=g}))}(i)}})";