{:uriI"file:///Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-f80793d855cd/backend/app/assets/javascripts/spree/backend/views/order/address.js?type=application/javascript&pipeline=self&id=572ac73eabb7d6979ed8494064e7a1513c6c8ecfc93a67cc839c4c5bf8e85f03:ET:load_pathI"`/Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-f80793d855cd/backend/app/assets/javascripts;T: filenameI"/Users/tvd/.gem/ruby/3.2.3/bundler/gems/solidus-f80793d855cd/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"TSpree.Views.Order.Address = Backbone.View.extend({ initialize: function(options) { // read initial values from page this.onChange(); this.stateSelect = new Spree.Views.StateSelect({ model: this.model, el: this.$el }); this.render(); this.listenTo(this.model, "change", this.render); }, events: { "change": "onChange", }, onChange: function() { this.model.set(this.getValues()) }, eachField: function(callback){ var view = this; var fields = ["name", "company", "address1", "address2", "city", "zipcode", "phone", "country_id", "state_name"]; _.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)) }); this.stateSelect.render(); } }); ;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-f80793d855cd/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;AACA;AACA;TI" sources;T[I"address.source.js;TI" names;T[I"x_sprockets_linecount;Ti7: charsetI" utf-8;F: digest"%Bj6n?UB\;!: lengthiT:environment_versionI"1.0;T:dependencies_digest"%DБJ=MSWR'5a b~:idI"E572ac73eabb7d6979ed8494064e7a1513c6c8ecfc93a67cc839c4c5bf8e85f03;F