PageSourceSearch

https://homepick.co.in/cdn/shop/t/41/assets/recently-viewed-product.js?v=2061926472506546111782332127

js homepick.co.in collected 2026-09-27 10:14:45 UTC 7,629 bytes, 2 lines download raw bytes

1jQuery.cookie=function(b,j,m){if(typeof j<"u"){m=m||{},j===null&&(j="",m.expires=-1);var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;typeof m.expires=="number"?(f=new Date,f.setTime(f.getTime()+m.expires*24*60*60*1e3)):f=m.expires,e="; expires="+f.toUTCString()}var l=m.path?"; path="+m.path:"",g=m.domain?"; domain="+m.domain:"",a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!="")for(var k=document.cookie.split(";"),h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==b+"="){d=decodeURIComponent(c.substring(b.length+1));break}}return d}},Shopify.Products=(function(){var config={howManyToShow:3,howManyToStoreInMemory:10,wrapperId:"recently-viewed-products",templateId:"recently-viewed-product-template",layout:"slider",swipe:!0,media:"adapt",onComplete:null},productHandleQueue=[],wrapper=null,template=null,shown=0,shownSection=0,cookie={configuration:{expires:90,path:"/",domain:window.location.hostname},name:"shopify_recently_viewed",write:function(recentlyViewed){jQuery.cookie(this.name,recentlyViewed.join(" "),this.configuration),localStorage.setItem(this.name,recentlyViewed.join(" "),this.configuration)},read:function(){var recentlyViewed=[],cookieValue=jQuery.cookie(this.name);return Shopify.designMode&&!cookieValue&&(cookieValue=localStorage.getItem("shopify_recently_viewed")),cookieValue!==null&&(recentlyViewed=cookieValue.split(" ")),recentlyViewed},destroy:function(){jQuery.cookie(this.name,null,this.configuration)},remove:function(productHandle){var recentlyViewed=this.read(),position=jQuery.inArray(productHandle,recentlyViewed);position!==-1&&(recentlyViewed.splice(position,1),this.write(recentlyViewed))}},finalize=function(){var items=wrapper.find(".item");if(items.length<=2&&$("#recently-viewed-products-list").addClass("center"),$("#recently-viewed-products-list-2").addClass("recently-viewed-loaded"),wrapper.show(),config.onComplete)try{config.onComplete()}catch{}},moveAlong=function(wrapperP){if(productHandleQueue.length&&shown<config.howManyToShow){var url=window.routes.root+"/products/"+productHandleQueue[shown]+"?view=ajax_recently_viewed";jQuery.ajax({type:"get",url,cache:!1,success:function(product){productHandleQueue[shown]!==""&&wrapperP.append(product),shown++,moveAlong(wrapperP)},error:function(){cookie.remove(productHandleQueue[shown]),shown++,moveAlong(wrapperP)}})}else finalize()},doAlong=function(wrapperS){const recentlyViewed=wrapperS.parents(".halo-recently-viewed-block"),sectionId=recentlyViewed.attr("sectionid");if(productHandleQueue.length&&shownSection<config.howManyToShow){var url=window.routes.root+"/products/"+productHandleQueue[shownSection]+"?view=ajax_section_recently_viewed";jQuery.ajax({type:"get",url,cache:!1,success:function(product){productHandleQueue[shownSection]!==""&&wrapperS.append(product),shownSection==0&&wrapperS.find(".product-item--loadingNoInfo").parents(".product").remove(),shownSection++,doAlong(wrapperS),recentlyViewed.find(".card-product .variants-popup-content .selector-wrapper .swatch-element").each(function(){const $input=$(this).find("input"),$label=$(this).find("label");$input.attr({id:($input.attr("id")||"")+sectionId,name:($input.attr("name")||"")+sectionId}),$label.attr("for",($label.attr("for")||"")+sectionId)}),recentlyViewed.find(".card-product").each(function(){const $qsForm=$(this).find(".variants-popup-content form"),$acForm=$(this).find(".card-action form"),$select=$(this).find(".variants-popup-content select"),$acButton=$(this).find(".card-action form button"),$qsButton=$(this).find(".variants-popup-content .product-card__button2 button");$qsForm.attr("id",($qsForm.attr("id")||"")+sectionId),$acForm.attr("id",($acForm.attr("id")||"")+sectionId),$select.attr("id",($select.attr("id")||"")+sectionId),$acButton.attr("data-form-id",($acButton.attr("data-form-id")||"")+sectionId),$qsButton.attr("data-form-id",($qsButton.attr("data-form-id")||"")+sectionId)})},error:function(){console.log($.parseJSON(xhr.responseText).description)}})}else{if(productHandleQueue.length==0){recentlyViewed.hide();return}if(config.layout=="slider"){var productGrid=wrapperS,itemToShow=productGrid.data("item-to-show"),itemDots=productGrid.data("item-dots"),itemDotsMb=productGrid.data("item-dots-mb"),itemArrows=productGrid.data("item-arrows"),itemArrowsMb=productGrid.data("item-arrows-mb");productGrid.length>0&&productGrid.not(".slick-initialized")&&productGrid.slick({mobileFirst:!0,adaptiveHeight:!0,vertical:!1,infinite:!0,slidesToShow:1,slidesToScroll:1,arrows:itemArrowsMb,dots:itemDotsMb,nextArrow:window.arrows.icon_next,prevArrow:window.arrows.icon_prev,rtl:window.rtl_slick,responsive:[{breakpoint:1599,settings:{arrows:itemArrows,dots:itemDots,get slidesToShow(){return itemToShow!=null&&itemToShow!==""?this.slidesToShow=itemToShow:this.slidesToShow=1},get slidesToScroll(){return itemToShow!=null&&itemToShow!==""?this.slidesToScroll=itemToShow:this.slidesToScroll=1}}},{breakpoint:1024,settings:{arrows:itemArrows,dots:itemDots,get slidesToShow(){return itemToShow!=null&&itemToShow!==""?itemToShow==5?this.slidesToShow=itemToShow-1:this.slidesToShow=itemToShow:this.slidesToShow=1},get slidesToScroll(){return itemToShow!=null&&itemToShow!==""?itemToShow==5?this.slidesToScroll=itemToShow-1:this.slidesToScroll=itemToShow:this.slidesToScroll=1}}},{breakpoint:991,settings:{arrows:itemArrowsMb,dots:itemDotsMb,slidesToShow:4,slidesToScroll:4}},{breakpoint:767,settings:{arrows:itemArrowsMb,dots:itemDotsMb,slidesToShow:3,slidesToScroll:3}},{breakpoint:320,settings:{arrows:itemArrowsMb,dots:itemDotsMb,slidesToShow:2,slidesToScroll:2}}]}),$("body").hasClass("cursor-fixed__show")&&(window.sharedFunctionsAnimation.onEnterButton(),window.sharedFunctionsAnimation.onLeaveButton())}$("body").hasClass("product-card-layout-08")&&window.sharedFunctions?.productC
1ountdownCard(),window.sharedFunctions?.swapHoverVideoProductCard()}};return{resizeImage:function(src,size){if(size==null)return src;if(size=="master")return src.replace(/http(s)?:/,"");var match=src.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?/i);if(match!=null){var prefix=src.split(match[0]),suffix=match[0];return(prefix[0]+"_"+size+suffix).replace(/http(s)?:/,"")}else return null},showRecentlyViewed:function(params){var params=params||{};jQuery.extend(config,params),productHandleQueue=cookie.read(),template=config.templateId,wrapper=jQuery("#"+config.wrapperId),config.howManyToShow=Math.min(productHandleQueue.length,config.howManyToShow),config.howManyToShow&&wrapper.length&&(template=="recently-viewed-product-popup"?moveAlong(wrapper):doAlong(wrapper))},getConfig:function(){return config},clearList:function(){cookie.destroy()},recordRecentlyViewed:function(params){var params=params||{};jQuery.extend(config,params);var recentlyViewed=cookie.read();if(window.location.pathname.indexOf("/products/")!==-1){var splitted=window.location.pathname.match(/\/products\/([a-z0-9\-]+)/);if(splitted==null)var productHandle=decodeURIComponent(window.location.pathname.split("/products/")[1]);else var productHandle=window.location.pathname.match(/\/products\/([a-z0-9\-]+)/)[1];var position=jQuery.inArray(productHandle,recentlyViewed);position===-1?(recentlyViewed.unshift(productHandle),recentlyViewed=recentlyViewed.splice(0,config.howManyToStoreInMemory)):(recentlyViewed.splice(position,1),recentlyViewed.unshift(productHandle)),cookie.write(recentlyViewed)}}}})();
2//# sourceMappingURL=/cdn/shop/t/41/assets/recently-viewed-product.js.map?v=2061926472506546111782332127

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.