var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); jQuery(document).ready(function($) { /** * Updates the Price Filter Slider widget to reflect the price ranges using * selected Currency. */ function update_price_filter_slider() { var $ = jQuery; if($('.price_slider').length <= 0) { return; } var $price_slider = $('.price_slider'); var $price_slider_amount = $('.price_slider_amount'); // Store the Currency used by the Price Filter. This will be used to determine // how to convert filter range into base Currency var selected_currency = wc_aelia_currency_switcher_params.selected_currency; var exchange_rate_from_base = wc_aelia_currency_switcher_params.current_exchange_rate_from_base; var price_filter_currency_field = $('') .attr('id', 'price_filter_currency') .attr('name', 'price_filter_currency') .attr('value', selected_currency) .hide(); $('.price_slider_amount').append(price_filter_currency_field); // Min and Max prices for the Slider are always in Base Currency and must be converted var min_price = $price_slider_amount.find('#min_price').attr('data-min'); var max_price = $price_slider_amount.find('#max_price').attr('data-max'); // Convert data-min and data-max to selected currency min_price = Math.floor(min_price * exchange_rate_from_base); max_price = Math.ceil(max_price * exchange_rate_from_base); $price_slider_amount.find('#min_price').attr('data-min', min_price); $price_slider_amount.find('#max_price').attr('data-max', max_price); if(typeof woocommerce_price_slider_params != 'undefined') { // Slider Min and Max values are also in Base Currency if(woocommerce_price_slider_params.min_price) { woocommerce_price_slider_params.min_price = Math.floor(woocommerce_price_slider_params.min_price * exchange_rate_from_base); } if(woocommerce_price_slider_params.max_price) { woocommerce_price_slider_params.max_price = Math.ceil(woocommerce_price_slider_params.max_price * exchange_rate_from_base); } } } update_price_filter_slider(); }); } /* FILE ARCHIVED ON 08:15:45 Jan 24, 2016 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 23:10:33 Mar 01, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.914 exclusion.robots: 0.138 exclusion.robots.policy: 0.123 esindex: 0.013 cdx.remote: 23.829 LoadShardBlock: 12885.173 (3) PetaboxLoader3.datanode: 157.822 (4) PetaboxLoader3.resolve: 12852.859 (2) load_resource: 181.749 */