{:uriI" file:///Users/Thomas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/solidus-1ccba07e13c8/backend/app/assets/javascripts/spree/backend/user_picker.js?type=application/javascript&pipeline=self&id=485f6113bf0ea23ebe6e572ca0c3b31acc939e6f6df1166ba4c0930d1d5f0a86:ET:load_pathI"}/Users/Thomas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/solidus-1ccba07e13c8/backend/app/assets/javascripts;T: filenameI"•/Users/Thomas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/solidus-1ccba07e13c8/backend/app/assets/javascripts/spree/backend/user_picker.js;T: nameI"spree/backend/user_picker;T:logical_pathI"&spree/backend/user_picker.self.js;T:content_typeI"application/javascript;T: sourceI"e$.fn.userAutocomplete = function () { 'use strict'; function formatUser(user) { return Select2.util.escapeMarkup(user.email); } this.select2({ minimumInputLength: 1, multiple: true, initSelection: function (element, callback) { Spree.ajax({ url: Spree.routes.users_api, data: { ids: element.val() }, success: function(data) { callback(data.users); } }); }, ajax: { url: Spree.routes.users_api, datatype: 'json', params: { "headers": { "X-Spree-Token": Spree.api_key } }, data: function (term) { return { q: { m: 'or', email_start: term, addresses_firstname_start: term, addresses_lastname_start: term } }; }, results: function (data) { return { results: data.users, more: data.current_page < data.pages }; } }, formatResult: formatUser, formatSelection: formatUser }); }; Spree.ready(function () { $('.user_picker').userAutocomplete(); }); ;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/Thomas/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gems/solidus-1ccba07e13c8/backend/app/assets/javascripts/spree/backend/user_picker.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%JÀÞ, —HœÚÞuÇ“¼UL“M|» AÓÏè*à: lengthie:dependencies_digest"%ºàŠ;Rüû°ò0:4¬ú͈s/mêˆ(û™!}«:idI"E485f6113bf0ea23ebe6e572ca0c3b31acc939e6f6df1166ba4c0930d1d5f0a86;F: mtimel+%¾·[