{:uriI"file:///Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/shipit/stacks.js.coffee?type=application/javascript&pipeline=self&id=7f61eab637057d661536cb613d0399ae195e7a08be6bfb29a92ae24cde659a59:ET:load_pathI"I/Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts;T: filenameI"a/Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/shipit/stacks.js.coffee;T: nameI"shipit/stacks;T:logical_pathI"shipit/stacks.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { jQuery(function($) { var dismissIgnoreCiMessage, displayIgnoreCiMessage, getLocalStorageKey, listenToEventSource, retries, updatePage; displayIgnoreCiMessage = function() { var ignoreCiMessage; ignoreCiMessage = $(".ignoring-ci"); if (!ignoreCiMessage) { return; } $('.dismiss-ignore-ci-warning').click(function(event) { event.preventDefault(); return dismissIgnoreCiMessage(); }); if (localStorage.getItem(getLocalStorageKey())) { return ignoreCiMessage.hide(); } }; dismissIgnoreCiMessage = function() { var ignoreCiMessage; localStorage.setItem(getLocalStorageKey(), true); ignoreCiMessage = $(".ignoring-ci"); if (ignoreCiMessage) { return ignoreCiMessage.hide(); } }; getLocalStorageKey = function() { var stackName; stackName = $('.repo-name').data('repo-full-name'); return "ignoreCIDismissed" + stackName; }; displayIgnoreCiMessage(); updatePage = function(message) { var payload; payload = JSON.parse(message.data); return $('[data-layout-content]').load(payload.url + " [data-layout-content] > *", function() { return $('time[data-time-ago]').timeago(); }); }; retries = 0; listenToEventSource = function(url) { var interval, source; source = new EventSource(url); source.addEventListener('stack.update', updatePage); return interval = setInterval(function() { switch (source.readyState) { case source.CLOSED: clearInterval(interval); if (retries > 0) { retries -= 1; return listenToEventSource(url); } break; default: return retries = 2; } }, 30000); }; return $('[data-event-stream]').each(function() { return listenToEventSource($(this).data('event-stream')); }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"ofile-digest:///Users/byroot/workspace/shopify/shipit-engine/app/assets/javascripts/shipit/stacks.js.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%Iqs'zԱK#tg:}?ڱq: lengthi:dependencies_digest"%&s$,}rޥ;gV>4jwEZa:idI"E7f61eab637057d661536cb613d0399ae195e7a08be6bfb29a92ae24cde659a59;F: mtimel+TU