{:uriI"file:///Users/tvd/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/bundler/gems/solidus-81b759a355f7/backend/app/assets/javascripts/spree/backend/user_picker.js?type=application/javascript&pipeline=self&id=eb954a6b5813efc78fc5887e9cf51684e671fd6c489955b595ee7273a0f08d58:ET:load_pathI"z/Users/tvd/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/bundler/gems/solidus-81b759a355f7/backend/app/assets/javascripts;T: filenameI"’/Users/tvd/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/bundler/gems/solidus-81b759a355f7/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/tvd/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/bundler/gems/solidus-81b759a355f7/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"%ב±¹¡AÖ*è#IÊOJÿ~Xp€u§°Ex·,cÐÏ:idI"Eeb954a6b5813efc78fc5887e9cf51684e671fd6c489955b595ee7273a0f08d58;F: mtimel+%“[