PageSourceSearch

https://www.mercihandy.com/cdn/shop/t/113/assets/algolia_helpers.js?v=31687727475882865061790175911

js mercihandy.com collected 2026-09-25 15:27:16 UTC 3,458 bytes, 2 lines download raw bytes

1(function(algolia){"use strict";var _=algolia._,formatPrice=function(value){return algolia.formatMoney(+value*100)};function formattedPriceWithComparison(price,compare_at_price,price_ratio){var comparing=+compare_at_price&&+compare_at_price>+price,discount_ratio=1-price_ratio,res="<b>"+formatPrice(price)+"</b>";return comparing&&(res+=' <span class="ais-hit--price-striked"><span>'+formatPrice(compare_at_price)+"</span></span> ",res+=' <span class="ais-hit--price-discount" style="font-weight: '+Math.floor(discount_ratio*10)*100+';">-'+Math.floor(discount_ratio*100)+"%</span>"),res}var escapeHtml=function(unsafe){return(unsafe||"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")};algolia.helpers={formatNumber:function(text,render){return Number(render(text)).toLocaleString()},formattedPrice:function(text,render){return formatPrice(render(text))},formattedPriceWithoutDecimals:function(text,render){return formatPrice(render(text)).replace(/\.\d+$/,"")},autocompletePrice:function(text,render){if(this._distinct){var min=this.variants_min_price,max=this.variants_max_price;if(min!==max)return"<b>"+formatPrice(min)+" - "+formatPrice(max)+"</b>"}return formattedPriceWithComparison(this.price,null)},instantsearchPrice:function(text,render){if(this._distinct){var min=this.variants_min_price,max=this.variants_max_price;if(min!==max)return"<b>"+formatPrice(min)+" - "+formatPrice(max)+"</b>"}return formattedPriceWithComparison(this.price,this.compare_at_price,this.price_ratio)},instantsearchLink:function(){var addVariantId=!this._distinct&&this.objectID!==this.id;return"/products/"+this.handle+(addVariantId?"?variant="+this.objectID:"")},fullTitle:function(){var res=this.title;return!this._distinct&&this.variant_title&&this.variant_title!=="Default Title"&&this.variant_title!=="Default"&&(res+=" ("+this.variant_title+")"),escapeHtml(res)},fullHTMLTitle:function(){var res=this._highlightResult.title.value;return!this._distinct&&this.variant_title&&this.variant_title!=="Default Title"&&this.variant_title!=="Default"&&(res+=' <span class="algolia-variant">('+this._highlightResult.variant_title.value+")</span>"),res},floor:function(text,render){return""+Math.floor(+render(text))},ceil:function(text,render){return""+Math.ceil(+render(text))},sizedImage:function(text,render){var image=this._distinct?this.product_image:this.image;if(!image)return"http://cdn.shopify.com/s/images/admin/no-image-compact.gif";var size=render(text).replace(/^\s+|\s+$/g,"");return size==="original"?image:image.replace(/\/(.*)\.(\w{2,4})/g,"/$1_"+size+".$2")}},_.forEach(["pico","icon","thumb","small","compact","medium","large","grande","original"],function(size){algolia.helpers[size+"Image"]=(function(_size){return function(){var image=this._distinct?this.product_image:this.image;return image?_size==="original"?image:image.replace(/\/(.*)\.(\w{2,4})/g,"/$1_"+_size+".$2"):"http://cdn.shopify.com/s/images/admin/no-image-compact.gif"}})(size)}),algolia.hoganHelpers=_.reduce(Object.assign({},algolia.helpers,algolia.translation_helpers),function(res,helper,name){return res[name]=function(){return function(text){var render=function(value){return Hogan.compile(value,algolia.hoganOptions).render(this)}.bind(this);return helper.call(this,text,render)}.bind(this)},res},{})})(algoliaShopify);
2//# sourceMappingURL=/cdn/shop/t/113/assets/algolia_helpers.js.map?v=31687727475882865061790175911

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.