{:uriI"file:///Users/tvd/.gem/ruby/3.2.2/bundler/gems/solidus-142098fbd7e6/backend/app/assets/javascripts/spree/backend/promotions.js?type=application/javascript&pipeline=self&id=aea46f8dc7dcb7bb3a3d768cdc137afa7b0f4342cb48dc5e380bd1d2350e519f: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/promotions.js;T: nameI"spree/backend/promotions;T:logical_pathI"%spree/backend/promotions.self.js;T:content_typeI"application/javascript;T: sourceI" // This is called on page load and via an ajax request in // app/views/spree/admin/promotion_actions/create.js.erb window.initPromotionActions = function() { $('#promotion-filters').find('.variant_autocomplete').variantAutocomplete(); $('.promo-rule-option-values').each(function() { if (!$(this).data('has-view')) { $(this).data('has-view', true); new Spree.Views.Promotions.OptionValuesRule({ el: this }); } }); $('.js-tiered-calculator').each(function() { if (!$(this).data('has-view')) { $(this).data('has-view', true); new Spree.Views.Calculators.Tiered({ el: this }); } }); }; Spree.ready(function() { // Add classes to boxes when hovering over delete $('#promotion-filters').on('mouseover', 'a.delete', function(event) { $(this).parent().addClass('action-remove'); }); $('#promotion-filters').on('mouseout', 'a.delete', function(event) { $(this).parent().removeClass('action-remove'); }); window.initPromotionActions(); }); ;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/promotions.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: to_loado;;}F: to_linko;;}F:map{ I" version;TiI" file;TI" spree/backend/promotions.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;TI" sources;T[I"promotions.source.js;TI" names;T[I"x_sprockets_linecount;Ti(: charsetI" utf-8;F: digest"%q ơR5H|t }:P : lengthi :environment_versionI"1.0;T:dependencies_digest"%@*2`Tw"\+#"V':idI"Eaea46f8dc7dcb7bb3a3d768cdc137afa7b0f4342cb48dc5e380bd1d2350e519f;F