{:uriI"file:///Users/tvd/.gem/ruby/3.2.2/bundler/gems/solidus-142098fbd7e6/backend/app/assets/javascripts/spree/backend/option_value_picker.js?type=application/javascript&pipeline=self&id=3b3675683399e3c581736cfdbcdbca81b1e7cb938317bf3f07b7c12725c45100:ET:load_pathI"`/Users/tvd/.gem/ruby/3.2.2/bundler/gems/solidus-142098fbd7e6/backend/app/assets/javascripts;T: filenameI"/Users/tvd/.gem/ruby/3.2.2/bundler/gems/solidus-142098fbd7e6/backend/app/assets/javascripts/spree/backend/option_value_picker.js;T: nameI"&spree/backend/option_value_picker;T:logical_pathI".spree/backend/option_value_picker.self.js;T:content_typeI"application/javascript;T: sourceI"7$.fn.optionValueAutocomplete = function (options) { 'use strict'; // Default options options = options || {} var multiple = typeof(options['multiple']) !== 'undefined' ? options['multiple'] : true; var productSelect = options['productSelect']; function formatOptionValue(option_value) { return Select2.util.escapeMarkup(option_value.name); } this.select2({ minimumInputLength: 3, multiple: multiple, initSelection: function (element, callback) { $.get(Spree.pathFor('api/option_values'), { ids: element.val().split(','), token: Spree.api_key }, function (data) { callback(multiple ? data : data[0]); }); }, ajax: { url: Spree.pathFor('api/option_values'), datatype: 'json', data: function (term, page) { // Note: This doesn't work. variants_product_id isn't an allowed filter var productId = typeof(productSelect) !== 'undefined' ? $(productSelect).select2('val') : null; return { q: { name_cont: term, variants_product_id_eq: productId }, token: Spree.api_key }; }, results: function (data, page) { return { results: data }; } }, formatResult: formatOptionValue, formatSelection: formatOptionValue }); }; ;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.2/bundler/gems/solidus-142098fbd7e6/backend/app/assets/javascripts/spree/backend/option_value_picker.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI")spree/backend/option_value_picker.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;TI" sources;T[I""option_value_picker.source.js;TI" names;T[I"x_sprockets_linecount;Ti2: charsetI" utf-8;F: digest"%Waе[\ W#-јD 7~E: lengthi7:environment_versionI"1.0;T:dependencies_digest"%1?po /P gxס:idI"E3b3675683399e3c581736cfdbcdbca81b1e7cb938317bf3f07b7c12725c45100;F