{:uriI"file:///Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-a14553bcc153/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee?type=application/javascript&pipeline=self&id=697dc9f7ab6a0f332c9b8ff135d849bdb99b1997ca66d621aa0e340f4b28a378:ET:load_pathI"i/Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-a14553bcc153/app/assets/javascripts;T: filenameI"/Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-a14553bcc153/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee;T: nameI""alchemy/alchemy.file_progress;T:logical_pathI"*alchemy/alchemy.file_progress.self.js;T:content_typeI"application/javascript;T: sourceI" (function() { if (typeof window.Alchemy === 'undefined') { window.Alchemy = {}; } Alchemy.FileProgress = function(file) { var $progressBarContainer; this.$fileProgressWrapper = $('
'); this.$fileProgressElement = $('
'); this.$fileProgressCancel = $(''); this.$fileProgressElement.append(this.$fileProgressCancel); this.$fileProgressElement.append("
" + file.name + "
"); this.$fileProgressStatus = $('
 
'); this.$fileProgressElement.append(this.$fileProgressStatus); $progressBarContainer = $('
'); this.$progressBar = $('
'); $progressBarContainer.append(this.$progressBar); this.$fileProgressElement.append($progressBarContainer); this.$fileProgressWrapper.append(this.$fileProgressElement); $('#uploadProgressContainer').append(this.$fileProgressWrapper); return this; }; Alchemy.FileProgress.prototype.reset = function() { this.$fileProgressStatus.html(' '); this.$progressBar.removeClass().addClass('progressBarInProgress'); return this.$progressBar.css({ width: '0%' }); }; Alchemy.FileProgress.prototype.setProgress = function(percentage) { this.$progressBar.removeClass().addClass('progressBarInProgress'); return this.$progressBar.css({ width: percentage + '%' }); }; Alchemy.FileProgress.prototype.setComplete = function() { this.$progressBar.removeClass().addClass('progressBarComplete'); this.$progressBar.css({ width: '100%' }); this.$fileProgressCancel.hide(); return this.$fileProgressWrapper.delay(1500).fadeOut(function() { return $(this).remove(); }); }; Alchemy.FileProgress.prototype.setError = function() { this.$progressBar.removeClass().addClass('progressBarError'); return this.$progressBar.css({ width: '100%' }); }; Alchemy.FileProgress.prototype.setCancelled = function() { this.$progressBar.removeClass().addClass('progressBarCanceled'); this.$progressBar.css({ width: '100%' }); this.$fileProgressCancel.hide(); return this.$fileProgressWrapper.delay(1500).fadeOut(function() { return $(this).remove(); }); }; Alchemy.FileProgress.prototype.setStatus = function(status) { return this.$fileProgressStatus.text(Alchemy.t(status)); }; }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"file-digest:///Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-a14553bcc153/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%L}hMcTޖP*#5t.H[: lengthi :dependencies_digest"%/Ro\jDԵ!Dur[Z:idI"E697dc9f7ab6a0f332c9b8ff135d849bdb99b1997ca66d621aa0e340f4b28a378;F: mtimel+V