{:uriI"þfile:///Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-cb0ff1ee4ab0/backend/app/assets/javascripts/spree/backend/views/images/upload_progress.js?type=application/javascript&pipeline=self&id=ffa85c8a2f5789ec3ae4185b56bcc4784ad386235d730898065e3a17d554eca8:ET:load_pathI"`/Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-cb0ff1ee4ab0/backend/app/assets/javascripts;T: filenameI"‰/Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-cb0ff1ee4ab0/backend/app/assets/javascripts/spree/backend/views/images/upload_progress.js;T: nameI"/spree/backend/views/images/upload_progress;T:logical_pathI"7spree/backend/views/images/upload_progress.self.js;T:content_typeI"application/javascript;T: sourceI" Spree.Views.Images.UploadProgress = Backbone.View.extend({ tagName: "div", // Cache the template function for a single item. template: HandlebarsTemplates["products/upload_progress"], initialize: function() { this.listenTo(this.model, 'change:progress', this.updateProgressBar); this.listenTo(this.model, 'change', this.render); this.listenTo(this.model, 'destroy', this.remove); }, events: { "clear" : "clear" }, className: 'col-sm-6 col-md-4 mb-3', attributes: function() { return { "data-upload-id": this.model.cid } }, render: function() { // Skip progress bar update for better performance var changedAttrs = Object.keys(this.model.changed); if(changedAttrs.length === 1 && changedAttrs[0] == 'progress') return this; this.el.innerHTML = this.template(this.model.toJSON()); this.updateProgressBar(); return this; }, updateProgressBar: function() { var progressBar = this.el.querySelector('.progress-bar'); var percent = this.model.get('progress'); progressBar.setAttribute('aria-valuenow', percent); progressBar.style.width = percent + '%'; progressBar.innerHTML = percent + '%'; return this; }, // Remove the item, destroy the model clear: function() { this.model.destroy(); } }); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"—file-digest:///Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-cb0ff1ee4ab0/backend/app/assets/javascripts/spree/backend/views/images/upload_progress.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI"2spree/backend/views/images/upload_progress.js;TI" mappings;TI"ïAAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;TI" sources;T[I"upload_progress.source.js;TI" names;T[I"x_sprockets_linecount;Ti5: charsetI" utf-8;F: digest"%eq”€YcµKj’¢Ê¹#À2tý-!°¾dæPˆz: lengthi :environment_versionI"1.0;T:dependencies_digest"%ªél¿šO½–5Š¾¤ðIÑË20t#i4Aí½‡Èqe:idI"Effa85c8a2f5789ec3ae4185b56bcc4784ad386235d730898065e3a17d554eca8;F