{:uriI"file:///usr/local/bundle/bundler/gems/solidus-28213ce2047d/backend/app/assets/javascripts/spree/backend/views/images/upload_zone.js?type=application/javascript&pipeline=self&id=7f8b71afed7879d4d8a52e44e78a61f3713569e3413e0bb2df086de065af2735:ET:load_pathI"W/usr/local/bundle/bundler/gems/solidus-28213ce2047d/backend/app/assets/javascripts;T: filenameI"|/usr/local/bundle/bundler/gems/solidus-28213ce2047d/backend/app/assets/javascripts/spree/backend/views/images/upload_zone.js;T: nameI"+spree/backend/views/images/upload_zone;T:logical_pathI"3spree/backend/views/images/upload_zone.self.js;T:content_typeI"application/javascript;T: sourceI"~Spree.Views.Images.UploadZone = Backbone.View.extend({ events: { "dragover" : "onDragOver", "dragleave" : "onDragLeave", "drop" : "onDrop", 'change input[type="file"]' : "onFileBrowserSelect" }, upload: function(file) { var progressModel = new Spree.Models.ImageUpload({file: file}); this.collection.add(progressModel); progressModel.previewFile(); progressModel.uploadFile(); }, dragClass: 'with-images', onDragOver: function(e) { this.el.classList.add(this.dragClass); e.preventDefault(); }, onDragLeave: function() { this.el.classList.remove(this.dragClass); }, onDrop: function(e) { this.el.classList.remove(this.dragClass); e.preventDefault(); _.each(e.originalEvent.dataTransfer.files, this.upload, this); }, onFileBrowserSelect: function(e) { _.each(e.target.files, this.upload, this); } }); ;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:///usr/local/bundle/bundler/gems/solidus-28213ce2047d/backend/app/assets/javascripts/spree/backend/views/images/upload_zone.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI".spree/backend/views/images/upload_zone.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;TI" sources;T[I"upload_zone.source.js;TI" names;T[I"x_sprockets_linecount;Ti,: charsetI" utf-8;F: digest"%(L(u@qR15AṁtH: lengthi~:environment_versionI"1.0;T:dependencies_digest"%'@h6CPJº| (zD:idI"E7f8b71afed7879d4d8a52e44e78a61f3713569e3413e0bb2df086de065af2735;F