1jQuery(function($){const exchangeRates=CPP_Data.exchangeRates;const productCurrency=CPP_Data.productCurrency;const symbol=CPP_Data.currency_symbol;const $form=$('form.variations_form');if($form.length&&CPP_Data.shop_behaviour!=='convert_shop_default'&&CPP_Data.shop_behaviour!=='convert_customer_based'){$form.on('wc_variation_form',function(){const variations=$form.data('product_variations');const convertedPrices=[];variations.forEach(function(variation){const price=parseFloat(variation.display_price??variation.variation_price??0);const varCurrency=variation.cpp_currency||productCurrency;if(!price||!varCurrency||!exchangeRates[varCurrency]){return;} 2const converted=(price*exchangeRates[varCurrency])/exchangeRates[productCurrency];convertedPrices.push(converted);});if(!convertedPrices.length){return;} 3const min=Math.min(...convertedPrices).toFixed(2);const max=Math.max(...convertedPrices).toFixed(2);let newPriceRange=`${symbol}${min}`;if(min!==max){newPriceRange+=` â ${symbol}${max}`;} 4const $priceContainer=$('.woocommerce-variation-price .price, .price');if($priceContainer.length){$priceContainer.first().html(newPriceRange);}});}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.