{:uriI"file:///Users/tvd/.gem/ruby/2.7.4/bundler/gems/solidus-2596bdd61623/backend/app/assets/javascripts/spree/backend/views/order/address.js?type=application/javascript&pipeline=self&id=4d97c4256e6de05bd3f4d8093215c8084816df3340cfe710c566f11c29e63e79:ET:load_pathI"`/Users/tvd/.gem/ruby/2.7.4/bundler/gems/solidus-2596bdd61623/backend/app/assets/javascripts;T: filenameI"/Users/tvd/.gem/ruby/2.7.4/bundler/gems/solidus-2596bdd61623/backend/app/assets/javascripts/spree/backend/views/order/address.js;T: nameI"&spree/backend/views/order/address;T:logical_pathI".spree/backend/views/order/address.self.js;T:content_typeI"application/javascript;T: sourceI"6Spree.Views.Order.Address = Backbone.View.extend({ initialize: function(options) { // read initial values from page this.onChange(); this.render(); this.listenTo(this.model, "change", this.render); this.stateSelect = new Spree.Views.StateSelect({ model: this.model, el: this.$el }); }, events: { "change": "onChange", }, onChange: function() { this.model.set(this.getValues()) }, eachField: function(callback){ var view = this; var fields = ["firstname", "lastname", "company", "address1", "address2", "city", "zipcode", "phone", "country_id"]; _.each(fields, function(field) { var el = view.$('[name$="[' + field + ']"]'); if (el.length) callback(field, el); }); }, getValues: function() { var attributes = {}; this.eachField(function(name, el) { attributes[name] = el.val(); }); return attributes; }, render: function() { var model = this.model; this.eachField(function(name, el) { el.val(model.get(name)) }) } }); ;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/2.7.4/bundler/gems/solidus-2596bdd61623/backend/app/assets/javascripts/spree/backend/views/order/address.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI")spree/backend/views/order/address.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"address.source.js;TI" names;T[I"x_sprockets_linecount;Ti5: charsetI" utf-8;F: digest"%!Vֻnc_ʣ$fĩH_r֍8I <: lengthi6:environment_versionI"1.0;T:dependencies_digest"%` aW+k"szjȌ:idI"E4d97c4256e6de05bd3f4d8093215c8084816df3340cfe710c566f11c29e63e79;F