jQuery((function(i){window.currencyPrice=function(){function t(){var t=[],r=i(".product-item");r&&(r.each((function(){var r;r=i(this).attr("data-currency")?{post_id:i(this).attr("data-post_id"),priceCurrency:i(this).attr("data-currency"),price:i(this).attr("data-_price_nc"),salePrice:i(this).attr("data-_salePrice_nc")}:{post_id:i(this).find('input[name="post_id"]').val(),priceCurrency:i(this).find('input[name="currency"]').val(),price:i(this).find('input[name="_price_nc"]').val(),salePrice:i(this).find('input[name="_salePrice_nc"]').val()},t.push(function(i){return i.price=window.formatPrice.convertPriceOut(i.price,i.priceCurrency),i.salePrice=window.formatPrice.convertPriceOut(i.salePrice,i.priceCurrency),i}(r))})),function(t){i.each(t,(function(t,r){var e;(e=i('.product-item[data-post_id="'+r.post_id+'"]')).length||(e=i('input[name="post_id"][value="'+r.post_id+'"]').closest(".product-item")),i(".js-price",e).html(r.price),i(".js-salePrice",e).html(r.salePrice)}))}(t))}return{init:function(){i("body").on("infoCurrency:done",(function(i){t()})),i("body").on("updateListPrice:init",(function(i){t()}))}}}(),window.currencyPrice.init()}));