PageSourceSearch

https://www.j-specperf.ch/cdn/shop/t/9/assets/boost-pfs-filter.js?v=172288152910598309481703771688

js j-specperf.ch collected 2026-10-08 02:07:07 UTC 7,288 bytes, 2 lines download raw bytes

1var boostPFSFilterConfig={general:{limit:boostPFSThemeConfig.custom.products_per_page,loadProductFirst:!0,showPlaceholderProductList:!0,placeholderProductPerRow:5,placeholderProductGridItemClass:"grid__item small--one-half medium-up--one-fifth"}};(function(){BoostPFS.inject(this),ProductGridItem.prototype.compileTemplate=function(data){data||(data=this.data);var images=data.images_info,soldOut=!data.available,onSale=data.compare_at_price_min>data.price_min,priceVaries=data.price_min!=data.price_max,firstVariant=data.variants[0];if(Utils.getParam("variant")!==null&&Utils.getParam("variant")!=""){var paramVariant=data.variants.filter(function(e){return e.id==Utils.getParam("variant")});typeof paramVariant[0]!="undefined"&&(firstVariant=paramVariant[0])}else for(var i=0;i<data.variants.length;i++)if(data.variants[i].available){firstVariant=data.variants[i];break}var itemHtml=boostPFSTemplate.productGridItemHtml,itemSaleLabelHtml=onSale?boostPFSTemplate.saleLabelHtml:"";itemHtml=itemHtml.replace(/{{itemSaleLabel}}/g,itemSaleLabelHtml);var itemSoldOutHtml=soldOut?boostPFSTemplate.soldOutLabelHtml:"";itemHtml=itemHtml.replace(/{{itemSoldOutLabel}}/g,itemSoldOutHtml),itemHtml=itemHtml.replace(/{{itemImages}}/g,buildImages(data,235));var itemThumbUrl=Utils.getFeaturedImage(images,"480x480");itemHtml=itemHtml.replace(/{{itemThumbUrl}}/g,itemThumbUrl);var itemVendorHtml=boostPFSThemeConfig.custom.vendor_enable?boostPFSTemplate.vendorHtml.replace(/{{itemVendorLabel}}/g,data.vendor):"";itemHtml=itemHtml.replace(/{{itemVendor}}/g,itemVendorHtml);var itemPriceHtml="";return data.price_min>0&&(onSale?priceVaries?itemPriceHtml=boostPFSThemeConfig.label.sale_from_price.replace(/{{ price }}/g,Utils.formatMoney(data.price_min,Globals.moneyFormat)):(itemPriceHtml='<span class="visually-hidden">'+boostPFSThemeConfig.label.regular_price+"</span>",itemPriceHtml+='<s class="product-card__regular-price">'+Utils.formatMoney(data.compare_at_price_min,Globals.moneyFormat)+"</s> ",itemPriceHtml+='<span class="visually-hidden">'+boostPFSThemeConfig.label.sale_price+"</span>",itemPriceHtml+=Utils.formatMoney(data.price_min,Globals.moneyFormat)):priceVaries?itemPriceHtml=boostPFSThemeConfig.label.from_price.replace(/{{ price }}/g,Utils.formatMoney(data.price_min,Globals.moneyFormat)):(itemPriceHtml='<span class="visually-hidden">'+boostPFSThemeConfig.label.regular_price+"</span>",itemPriceHtml+=Utils.formatMoney(data.price_min,Globals.moneyFormat))),itemHtml=itemHtml.replace(/{{itemPrice}}/g,itemPriceHtml),itemHtml=itemHtml.replace(/{{itemId}}/g,data.id),itemHtml=itemHtml.replace(/{{itemTitle}}/g,data.title),itemHtml=itemHtml.replace(/{{itemHandle}}/g,data.handle),itemHtml=itemHtml.replace(/{{itemUrl}}/g,Utils.buildProductItemUrl(data)),itemHtml};function buildImages(data,img_width){var html="",maximum_width="",width=data.images_info.length>0?data.images_info[0].width:480,height=data.images_info.length>0?data.images_info[0].height:480,ratio=width/height;return data.images!=null?ratio<1?(maximum_width=img_width*ratio,height<=img_width&&(maximum_width=width)):width<=img_width?maximum_width=width:maximum_width=img_width:maximum_width=img_width,html+='<div class="product-card__image js" style="max-width: '+maximum_width+'px;" data-image-id="'+(data.images_info[0]!=null?data.images_info[0].id:"")+'">',html+='<div style="padding-top:'+1/ratio*100+'%;">',html+='<img class="lazyload" src="'+Utils.getFeaturedImage(data.images_info,"300x300")+'" data-src="'+Utils.getFeaturedImage(data.images_info,"{width}x")+'" data-widths="[100, 140, 180, 250, 305, 440, 610, 720, 930, 1080]" data-aspectratio="'+ratio+'" data-sizes="auto" data-parent-fit="contain" alt="{{itemTitle}}">',html+='<noscript><img class="product-card__image" src="'+Utils.getFeaturedImage(data.images_info,"480x480")+'" alt="{{itemTitle}}"></noscript>',html+="</div>",html+="</div>",html}ProductListPlaceholder.prototype.getTemplate=function(){return'<div class="{{wrapperClass}} {{class.filterProductSkeleton}}"><a class="product-card"><div class="{{class.filterProductSkeleton}}-image" style="padding-top: {{paddingTop}}%"></div><div class="{{class.filterProductSkeleton}}-meta"><span class="{{class.filterSkeletonText}} {{class.filterSkeleton}}"></span><span class="{{class.filterSkeletonText}} {{class.filterSkeleton}}-width1"></span></div></a></div>'},ProductPaginationDefault.prototype.compileTemplate=function(totalProduct){totalProduct||(totalProduct=this.totalProduct);var currentPage=parseInt(Globals.queryParams.page),totalPage=Math.ceil(totalProduct/Globals.queryParams.limit);if(totalPage>1){var paginationHtml=boostPFSTemplate.paginateHtml,previousHtml=currentPage>1?boostPFSTemplate.previousHtml:"";previousHtml=previousHtml.replace(/{{itemUrl}}/g,Utils.buildToolbarLink("page",currentPage,currentPage-1)),paginationHtml=paginationHtml.replace(/{{previous}}/g,previousHtml);var nextHtml=currentPage<totalPage?boostPFSTemplate.nextHtml:"";nextHtml=nextHtml.replace(/{{itemUrl}}/g,Utils.buildToolbarLink("page",currentPage,currentPage+1)),paginationHtml=paginationHtml.replace(/{{next}}/g,nextHtml);for(var beforeCurrentPageArr=[],iBefore=currentPage-1;iBefore>currentPage-3&&iBefore>0;iBefore--)beforeCurrentPageArr.unshift(iBefore);currentPage-4>0&&beforeCurrentPageArr.unshift("..."),currentPage-4>=0&&beforeCurrentPageArr.unshift(1),beforeCurrentPageArr.push(currentPage);for(var afterCurrentPageArr=[],iAfter=currentPage+1;iAfter<currentPage+3&&iAfter<=totalPage;iAfter++)afterCurrentPageArr.push(iAfter);currentPage+3<totalPage&&afterCurrentPageArr.push("..."),currentPage+3<=totalPage&&afterCurrentPageArr.push(totalPage);for(var pageItemsHtml="",pageArr=beforeCurrentPageArr.concat(afterCurrentPageArr),iPage=0;iPage<pageArr.length;
1iPage++)pageArr[iPage]=="..."?pageItemsHtml+=boostPFSTemplate.pageItemRemainHtml:pageItemsHtml+=pageArr[iPage]==currentPage?boostPFSTemplate.pageItemSelectedHtml:boostPFSTemplate.pageItemHtml,pageItemsHtml=pageItemsHtml.replace(/{{itemTitle}}/g,pageArr[iPage]),pageItemsHtml=pageItemsHtml.replace(/{{itemUrl}}/g,Utils.buildToolbarLink("page",currentPage,pageArr[iPage]));return paginationHtml=paginationHtml.replace(/{{pageItems}}/g,pageItemsHtml),paginationHtml}return""},ProductSorting.prototype.compileTemplate=function(){var html="";if(boostPFSTemplate.hasOwnProperty("sortingHtml")){var sortingArr=Utils.getSortingList();if(sortingArr){var sortingItemsHtml="";for(var k in sortingArr)sortingItemsHtml+='<option value="'+k+'">'+sortingArr[k]+"</option>";html=boostPFSTemplate.sortingHtml.replace(/{{sortingItems}}/g,sortingItemsHtml)}}return html},ProductLimit.prototype.compileTemplate=function(){var html="";if(boostPFSTemplate.hasOwnProperty("showLimitHtml")){var numberList=Settings.getSettingValue("general.showLimitList");if(numberList!=""){for(var showLimitItemsHtml="",arr=numberList.split(","),k=0;k<arr.length;k++)showLimitItemsHtml+='<option value="'+arr[k]+'">'+arr[k]+"</option>";html=boostPFSTemplate.showLimitHtml.replace(/{{showLimitItems}}/g,showLimitItemsHtml)}}return html},ProductList.prototype.afterRender=function(data){data||(data=this.data)},FilterResult.prototype.afterRender=function(data){data||(data=this.data)}})();
2//# sourceMappingURL=/cdn/shop/t/9/assets/boost-pfs-filter.js.map?v=172288152910598309481703771688

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.