PageSourceSearch

https://www.petsupermarket.com/on/demandware.static/Sites-PetSuper…/v1791000603839/js/einsteinCarousel.js

js petsupermarket.com collected 2026-10-03 23:30:39 UTC 3,014 bytes, 1 lines download raw bytes

1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=374)}({374:function(e,t,n){"use strict";function r(e,t,n,r){e.getRecs?e.getRecs(e.clientId,t,n,r):(e.widgets=e.widgets||[],e.widgets.push({recommenderName:t,parameters:n,callback:r}))}function a(e,t,n){var a=e.data("recommender"),i={userId:t.getCQUserId(),cookieId:t.getCQCookieId(),ccver:"1.01"};n&&(i.anchors=n),r(t,a,i,(function n(s){var o=s[a].recs;"viewed-recently"!=a&&"recently-viewed"!=a||0!==o.length?(!function(e,t){var n=t.data("recommender"),r=e[n].recs;if(r&&r.length>0){var a,i=t.data("template"),s=t.data("swatches"),o=t.data("displayratings");a=r.map((function(e){var n={};return n.classxs=t.data("bsxs"),n.classsm=t.data("bssm"),n.classmd=t.data("bsmd"),n.template=i,n.swatches=s,n.displayratings=o,n.model={type:"product",id:e.id},n}));var d=new URL(t.data("product-load-url"));d.searchParams.append("components",JSON.stringify(a)),d.searchParams.append("limit",t.data("limit")),d.searchParams.append("recommender",n);var c=r.length;r.length>t.data("limit")&&(c=Math.abs(t.data("limit")-r.length)),t.find(".slick-nav-items .slick-counter .max").text(c),t.find(".slick-nav-items").addClass("d-flex").removeClass("d-none"),$.ajax({url:d.href,type:"get",dataType:"html",success:function(e){t.find(".einstein-products").html(e),$(".einstein-title").addClass("d-block")},error:function(){t.spinner().stop()}})}}(s,e),e.spinner().stop()):(a="best-sellers",e.data("recommender","best-sellers"),$(".carousel-title").text("Best Sellers"),r(t,a,i,n))}))}function i(){var e=function(){var e=window.CQuotient;return e&&"function"==typeof e.getCQUserId&&"function"==typeof e.getCQCookieId?e:null}();e&&$(".einstein-carousel").each((function(){var t=$(this);return t.spinner().start(),$(this).closest(".experience-einstein-einsteinCarouselProduct").length?a(t,e,function(e){return[{id:e.data("primaryProductId"),sku:e.data("secondaryProductId"),type:e.data("alternativeGroupType"),alt_id:e.data("alternativeGroupId")}]}(t)):$(this).closest(".experience-einstein-einsteinCarouselCategory").length?a(t,e,function(e){return[{id:e.data("categoryId")}]}(t)):a(t,e)}))}$(document).ready((function(){i()}))}});

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.