{:uriI"file:///Users/tvd/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/alchemy_cms-4.0.4/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee?type=application/javascript&pipeline=self&id=9d2647e7dead0765585707a6e2e2e7da840d881fe2d92eb5cd520dcb6588526a:ET:load_pathI"g/Users/tvd/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/alchemy_cms-4.0.4/app/assets/javascripts;T: filenameI"/Users/tvd/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/alchemy_cms-4.0.4/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); $('.upload-progress-container').append(this.$fileProgressWrapper); return this; }; Alchemy.FileProgress.prototype.reset = function() { this.$fileProgressStatus.html(' '); this.$progressBar.removeClass().addClass('progress-bar-in-progress'); return this.$progressBar.css({ width: '0%' }); }; Alchemy.FileProgress.prototype.setProgress = function(percentage) { this.$progressBar.removeClass().addClass('progress-bar-in-progress'); return this.$progressBar.css({ width: percentage + '%' }); }; Alchemy.FileProgress.prototype.setComplete = function() { this.$progressBar.removeClass().addClass('progress-bar-complete'); 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('progress-bar-error'); return this.$progressBar.css({ width: '100%' }); }; Alchemy.FileProgress.prototype.setCancelled = function() { this.$progressBar.removeClass().addClass('progress-bar-canceled'); this.$progressBar.css({ width: '100%' }); this.$fileProgressCancel.hide(); return this.$fileProgressWrapper.delay(1500).fadeOut(function() { $(this).remove(); if ($('.upload-progress-container').is(':empty')) { $('.overall-upload').removeClass('visible'); } }); }; 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/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/alchemy_cms-4.0.4/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%n¿)%[k :uR/&E22: lengthi :dependencies_digest"%8;12~iPsd:idI"E9d2647e7dead0765585707a6e2e2e7da840d881fe2d92eb5cd520dcb6588526a;F: mtimel+맏[