{:uriI"file:///usr/local/bundle/bundler/gems/solidus-28213ce2047d/backend/app/assets/javascripts/spree/backend/views/order/shipping_method.js?type=application/javascript&pipeline=self&id=663629b00bd1d41645bf53909d6ec97db3cbfae32397f19b1e6d066c6df3355f: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/order/shipping_method.js;T: nameI".spree/backend/views/order/shipping_method;T:logical_pathI"6spree/backend/views/order/shipping_method.self.js;T:content_typeI"application/javascript;T: sourceI" Spree.Views.Order.ShippingMethod = Backbone.View.extend({ tagName: 'tr', className: 'edit-shipping-method', events: { "click .js-edit": "onEdit", "click .js-save": "onSave", "submit form": "onSave", "click .js-cancel": "onCancel" }, initialize: function(options) { this.shippingMethodId = this.model.get('selected_shipping_rate').get('shipping_method_id'); this.shippingRates = new Backbone.Collection(); this.render(); }, onEdit: function(event) { this.editing = true; this.shippingRates = this.model.estimatedRates(); this.listenTo(this.shippingRates, "sync", this.render); this.render(); }, onSave: function(event) { this.editing = false; this.shippingMethodId = this.$('select').val(); this.shippingRates = new Backbone.Collection(); this.model.selectShippingMethodId(this.shippingMethodId, { success: function() { window.location.reload(); } }); this.render(); return false; }, onCancel: function(event) { this.editing = false; this.shippingRates = new Backbone.Collection(); this.render(); }, render: function() { var html = HandlebarsTemplates['orders/shipping_method']({ editing: this.editing, order: this.model.collection.parent.toJSON(), shipment: this.model.toJSON(), selected_shipping_rate: this.model.get("selected_shipping_rate").toJSON(), shipping_rates: this.shippingRates.toJSON() }); this.$el.html(html); this.$('select').val(this.shippingMethodId); } }) ;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/order/shipping_method.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI"1spree/backend/views/order/shipping_method.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;TI" sources;T[I"shipping_method.source.js;TI" names;T[I"x_sprockets_linecount;Ti>: charsetI" utf-8;F: digest"%НsBm*))땟Mp=: lengthi :environment_versionI"1.0;T:dependencies_digest"%(ӫQnApE-ܭ/:idI"E663629b00bd1d41645bf53909d6ec97db3cbfae32397f19b1e6d066c6df3355f;F