1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9939],{5951:e=>{e.exports={recommendationSlider:"RecommendationSliderContainer_recommendationSlider__n9QP1",mobileOnly:"RecommendationSliderContainer_mobileOnly__r1Ya7",desktopOnly:"RecommendationSliderContainer_desktopOnly__LwHm5"}},9939:(e,i,t)=>{"use strict";t.d(i,{J3:()=>s.J3,Dk:()=>_,w:()=>a,re:()=>y,CM:()=>R,bl:()=>j,lp:()=>f,nl:()=>g});var o=t(93283),n=t(80820);o.Ik({index:n.ai().min(0).default(0),altRecoGoogleShoppingOnly:o.zM().default(!1),identifier:o.Yj().optional(),responsiveVisibility:o.Yj().optional()});var s=t(16057);let a={1:{slidesPerView:1,slidesPerGroup:1,freeMode:!1},360:{slidesPerView:2,slidesPerGroup:2,freeMode:!1},500:{slidesPerView:3,slidesPerGroup:3,freeMode:!1},544:{slidesPerView:3.2,slidesPerGroup:3,freeMode:!1},670:{slidesPerView:4,slidesPerGroup:4,freeMode:!1},767:{slidesPerView:4,slidesPerGroup:4,freeMode:!1},950:{slidesPerView:5,slidesPerGroup:5,freeMode:!1},1200:{slidesPerView:6,slidesPerGroup:6,freeMode:!1},1323:{slidesPerView:7,slidesPerGroup:7,freeMode:!1}};var d=t(80263),r=t(53239),c=t(44310),l=t(77344),p=t(95334),m=t(21093);let g=e=>(null==e?void 0:e.recommendations)&&e.recommendations.length>0,u=(0,r.memo)(e=>{var i,t,o;let{className:n,recoContainer:a,horizontal:r,identifier:g,slidesPerViewLarge:u,slidesPerViewExtraLarge:_,hasTitlePadding:v=!1,h2TitleForMobile:h=!1,h2TitleForDesktop:R=!1,customSlidesConfiguration:b,isZooplusChoiceEnabled:j=!1,isSponsoredTagEnabled:w=!1,isHomePageV2reco:y=!1,sliderClassName:f,isAddToCartVisible:P=!1,currency:V="",onAddToCartClick:C,customProductClickTracker:E,trackingPage:A,trackingOrigin:I}=e,{t:S}=(0,c.Bd)(),{site:x,locale:T}=null!=(i=(0,l.ip)())?i:{},U=null!=(t=null==x?void 0:x.domain)?t:"",L=null!=(o=null==x?void 0:x.id)?o:0,O=window.location.href,k=(0,p.Kg)();return(0,d.jsx)(s.Rx,{className:n,recoContainer:a,horizontal:r,identifier:g,slidesPerViewLarge:u,slidesPerViewExtraLarge:_,hasTitlePadding:v,h2TitleForMobile:h,h2TitleForDesktop:R,customSlidesConfiguration:b,isZooplusChoiceEnabled:j,isSponsoredTagEnabled:w,isHomePageV2reco:y,sliderClassName:f,isAddToCartVisible:P,currency:V,onAddToCartClick:C,trackingPage:A,trackingContext:{domain:U,siteId:L,locale:T,pageLocation:O,customerId:k?"".concat(k):void 0,origin:I},translations:{skipCarousel:e=>S("catalog.content.skipCarousel",{0:e}),arrowLeft:S("recommendations.arrow.left"),arrowRight:S("recommendations.arrow.right"),discountBadge:e=>S("shop.photoOverlay.Discount",{0:e}),discountApplied:S("ab_test.zooplus.discount.applied"),wasPrice:S("ab_test.zooplus.wasPrice"),refPriceAriaLabel:S("price.refPriceAriaLabel"),addToCartAriaLabel:S("accessibility.add.to.cart"),ratingAccessibilityLabel:S("catalog.explore.reviews.rating.accessibility.label"),sponsoredProductsLabel:S("general.sponsored.products")},renderZooplusChoiceBadge:e=>{let{label:i,className:t}=e;return(0,d.jsx)(m.Dm,{className:t,text:i,isRecommendation:!0})},customProductClickTracker:E})});u.displayName="RecommendationSlider";let _=u;t(11230),t(26944),(0,r.createContext)({isAltRecoExperimentEnabled:!1}).Provider;var v=t(61390),h=t(98523);let R=async e=>{let{siteId:i,language:t,pageType:o,articleId:n,productId:s,manualProductIds:a,nProducts:d,q:r,productGroupIds:c,pg2Ids:l,pg3Ids:p,pg4Ids:m,pg5Ids:g,minPrice:u,maxPrice:_,minRating:R,maxRating:b,brandIds:j,petType:w,petPhase:y,breed:f,petId:P,petSize:V,healthCare:C,customerId:E,userId:A,sid:I,sid2:S,bonusPoints:x,cartProducts:T,optimizelyDecisions:U,owner:L,blockCode:O,actionName:k}=e,M=await (0,h.H4)(()=>v.N.getRecommendationsV4(i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,...U?[{headers:U}]:[]),{owner:L,block:O,actionName:k});return null==M?void 0:M.data},b=(e,i)=>{let t=null==e?void 0:e.find(e=>e.level===i);return t?[t.extId]:void 0},j=e=>{let i={};return i.pg2Ids=b(e,2),i.pg3Ids=b(e,3),i.pg4Ids=b(e,4),i.pg5Ids=b(e,5),i};var w=t(29173);let y={LEVEL4:"web_category_l4",LEVEL3:"web_category_l3",LEVEL2:"web_category_l2",SEARCH:"web_empty_search",PDP:"web_pdp",FEEDBACK:"web_feedback",STOCK_REMINDER:"web_out_of_stock",CUSTOMER_PICTURES:"web_product_pictures",HOMEPAGE:"web_home"},f=(e,i,t,o,n,s)=>'\n var zootopia = {\n pageType: "'.concat(i,'",\n siteId: "').concat(e,'"\n };\n var zootopiaRecoParams = {\n enabled: "true",\n pageType: "').concat(t,'",\n endpoint: "').concat(w.Rt.REACT_APP_RECOMMENDATION_API_URL,"/v2/sites/").concat(e,"/").concat(s,"/pages/").concat(t,'/recommendations",\n queryParams: {product_id:"').concat(o,'", "pg4_ids":null, "pg5_ids":').concat(n,"}\n };\n");t(5951)},61390:(e,i,t)=>{"use strict";t.d(i,{N:()=>f,$:()=>P});var o=t(97562),n=t(91920),s=t(99134),a=t(29173);let d="http://localhost".replace(/\/+$/,""),r={csv:","};class c{constructor(e,i=d,t=o.A){this.basePath=i,this.axios=t,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}
1class l extends Error{constructor(e,i){super(i),this.field=e,this.name="RequiredError"}}let p="https://example.com",m=function(e,i,t){if(null==t)throw new l(i,"Required parameter ".concat(i," was null or undefined when calling ").concat(e,"."))},g=async function(e,i,t){if(t&&t.apiKey){let o="function"==typeof t.apiKey?await t.apiKey(i):await t.apiKey;e[i]=o}},u=function(e){for(var i=arguments.length,t=Array(i>1?i-1:0),o=1;o<i;o++)t[o-1]=arguments[o];let n=new URLSearchParams(e.search);!function e(i,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach(t=>e(i,t,o)):Object.keys(t).forEach(n=>e(i,t[n],"".concat(o).concat(""!==o?".":"").concat(n))):i.has(o)?i.append(o,t):i.set(o,t))}(n,t),e.search=n.toString()},_=function(e){return e.pathname+e.search+e.hash},v=function(e,i,t,o){return function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a={...e.options,url:((null==o?void 0:o.basePath)||n.defaults.baseURL||s)+e.url};return n.request(a)}},h=function(e){let i={getBundles:async function(i,t,o,n,s,a){let d,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};m("getBundles","siteId",i),m("getBundles","language",t),m("getBundles","pageType",o);let c=new URL("/v4/sites/{site_id}/{language}/{page_type}/bundles".replace("{site_id}",encodeURIComponent(String(i))).replace("{language}",encodeURIComponent(String(t))).replace("{page_type}",encodeURIComponent(String(o))),p);e&&(d=e.baseOptions);let l={method:"GET",...d,...r},v={},h={};await g(v,"Authorization",e),void 0!==n&&(h.article_id=n),void 0!==s&&(h.pet_type=s),void 0!==a&&(h.group_assignment=a),u(c,h);let R=d&&d.headers?d.headers:{};return l.headers={...v,...R,...r.headers},{url:_(c),options:l}}};return{getBundles:async(t,n,s,a,r,c,l)=>v(await i.getBundles(t,n,s,a,r,c,l),o.A,d,e)}};class R extends c{getBundles(e,i,t,o,n,s,a){return h(this.configuration).getBundles(e,i,t,o,n,s,a).then(e=>e(this.axios,this.basePath))}}let b=function(e){let i={getRecommendationsV2:async function(i,t,o,n,s,a,d,c,l,v,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O,k){let M,G=arguments.length>30&&void 0!==arguments[30]?arguments[30]:{};m("getRecommendationsV2","siteId",i),m("getRecommendationsV2","language",t),m("getRecommendationsV2","pageType",o);let z=new URL("/v2/sites/{site_id}/{language}/pages/{page_type}/recommendations".replace("{site_id}",encodeURIComponent(String(i))).replace("{language}",encodeURIComponent(String(t))).replace("{page_type}",encodeURIComponent(String(o))),p);e&&(M=e.baseOptions);let N={method:"GET",...M,...G},B={},D={};await g(B,"Authorization",e),n&&(D.article_id=n.join(r.csv)),s&&(D.product_id=s.join(r.csv)),a&&(D.manual_product_ids=a.join(r.csv)),void 0!==d&&(D.n_products=d),void 0!==c&&(D.q=c),l&&(D.product_group_ids=l.join(r.csv)),v&&(D.pg2_ids=v.join(r.csv)),h&&(D.pg3_ids=h.join(r.csv)),R&&(D.pg4_ids=R.join(r.csv)),b&&(D.pg5_ids=b.join(r.csv)),void 0!==j&&(D.min_price=j),void 0!==w&&(D.max_price=w),void 0!==y&&(D.min_rating=y),void 0!==f&&(D.max_rating=f),P&&(D.brand_ids=P.join(r.csv)),V&&(D.pet_type=V.join(r.csv)),C&&(D.pet_phase=C.join(r.csv)),E&&(D.breed=E.join(r.csv)),void 0!==A&&(D.pet_id=A),I&&(D.pet_size=I.join(r.csv)),S&&(D.healthcare=S.join(r.csv)),void 0!==x&&(D.customer_id=x),void 0!==T&&(D.user_id=T),void 0!==U&&(D.sid=U),void 0!==L&&(D.Sid=L),void 0!==O&&(D.bonus_points=O),k&&(D.cart_products=k.join(r.csv)),u(z,D);let K=M&&M.headers?M.headers:{};return N.headers={...B,...K,...G.headers},{url:_(z),options:N}},getRecommendationsV3:async function(i,t,o,n,s,a,d,c,l,v,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O,k){let M,G=arguments.length>30&&void 0!==arguments[30]?arguments[30]:{};m("getRecommendationsV3","siteId",i),m("getRecommendationsV3","language",t),m("getRecommendationsV3","pageType",o);let z=new URL("/v3/sites/{site_id}/{language}/pages/{page_type}/recommendations".replace("{site_id}",encodeURIComponent(String(i))).replace("{language}",encodeURIComponent(String(t))).replace("{page_type}",encodeURIComponent(String(o))),p);e&&(M=e.baseOptions);let N={method:"GET",...M,...G},B={},D={};await g(B,"Authorization",e),n&&(D.article_id=n.join(r.csv)),s&&(D.product_id=s.join(r.csv)),a&&(D.manual_product_ids=a.join(r.csv)),void 0!==d&&(D.n_products=d),void 0!==c&&(D.q=c),l&&(D.product_group_ids=l.join(r.csv)),v&&(D.pg2_ids=v.j
1oin(r.csv)),h&&(D.pg3_ids=h.join(r.csv)),R&&(D.pg4_ids=R.join(r.csv)),b&&(D.pg5_ids=b.join(r.csv)),void 0!==j&&(D.min_price=j),void 0!==w&&(D.max_price=w),void 0!==y&&(D.min_rating=y),void 0!==f&&(D.max_rating=f),P&&(D.brand_ids=P.join(r.csv)),V&&(D.pet_type=V.join(r.csv)),C&&(D.pet_phase=C.join(r.csv)),E&&(D.breed=E.join(r.csv)),void 0!==A&&(D.pet_id=A),I&&(D.pet_size=I.join(r.csv)),S&&(D.healthcare=S.join(r.csv)),void 0!==x&&(D.customer_id=x),void 0!==T&&(D.user_id=T),void 0!==U&&(D.sid=U),void 0!==L&&(D.Sid=L),void 0!==O&&(D.bonus_points=O),k&&(D.cart_products=k.join(r.csv)),u(z,D);let K=M&&M.headers?M.headers:{};return N.headers={...B,...K,...G.headers},{url:_(z),options:N}},getRecommendationsV3Email:async function(i,t,o,n,s,a,d,c,l,v,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O,k){let M,G=arguments.length>30&&void 0!==arguments[30]?arguments[30]:{};m("getRecommendationsV3Email","siteId",i),m("getRecommendationsV3Email","language",t),m("getRecommendationsV3Email","pageType",o);let z=new URL("/v3/email/sites/{site_id}/{language}/pages/{page_type}/recommendations".replace("{site_id}",encodeURIComponent(String(i))).replace("{language}",encodeURIComponent(String(t))).replace("{page_type}",encodeURIComponent(String(o))),p);e&&(M=e.baseOptions);let N={method:"GET",...M,...G},B={},D={};await g(B,"Authorization",e),n&&(D.article_id=n.join(r.csv)),s&&(D.product_id=s.join(r.csv)),a&&(D.manual_product_ids=a.join(r.csv)),void 0!==d&&(D.n_products=d),void 0!==c&&(D.q=c),l&&(D.product_group_ids=l.join(r.csv)),v&&(D.pg2_ids=v.join(r.csv)),h&&(D.pg3_ids=h.join(r.csv)),R&&(D.pg4_ids=R.join(r.csv)),b&&(D.pg5_ids=b.join(r.csv)),void 0!==j&&(D.min_price=j),void 0!==w&&(D.max_price=w),void 0!==y&&(D.min_rating=y),void 0!==f&&(D.max_rating=f),P&&(D.brand_ids=P.join(r.csv)),V&&(D.pet_type=V.join(r.csv)),C&&(D.pet_phase=C.join(r.csv)),E&&(D.breed=E.join(r.csv)),void 0!==A&&(D.pet_id=A),I&&(D.pet_size=I.join(r.csv)),S&&(D.healthcare=S.join(r.csv)),void 0!==x&&(D.customer_id=x),void 0!==T&&(D.user_id=T),void 0!==U&&(D.sid=U),void 0!==L&&(D.Sid=L),void 0!==O&&(D.bonus_points=O),k&&(D.cart_products=k.join(r.csv)),u(z,D);let K=M&&M.headers?M.headers:{};return N.headers={...B,...K,...G.headers},{url:_(z),options:N}},getRecommendationsV4:async function(i,t,o,n,s,a,d,c,l,v,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O,k){let M,G=arguments.length>30&&void 0!==arguments[30]?arguments[30]:{};m("getRecommendationsV4","siteId",i),m("getRecommendationsV4","language",t),m("getRecommendationsV4","pageType",o);let z=new URL("/v4/sites/{site_id}/{language}/pages/{page_type}/recommendations".replace("{site_id}",encodeURIComponent(String(i))).replace("{language}",encodeURIComponent(String(t))).replace("{page_type}",encodeURIComponent(String(o))),p);e&&(M=e.baseOptions);let N={method:"GET",...M,...G},B={},D={};await g(B,"Authorization",e),n&&(D.article_id=n.join(r.csv)),s&&(D.product_id=s.join(r.csv)),a&&(D.manual_product_ids=a.join(r.csv)),void 0!==d&&(D.n_products=d),void 0!==c&&(D.q=c),l&&(D.product_group_ids=l.join(r.csv)),v&&(D.pg2_ids=v.join(r.csv)),h&&(D.pg3_ids=h.join(r.csv)),R&&(D.pg4_ids=R.join(r.csv)),b&&(D.pg5_ids=b.join(r.csv)),void 0!==j&&(D.min_price=j),void 0!==w&&(D.max_price=w),void 0!==y&&(D.min_rating=y),void 0!==f&&(D.max_rating=f),P&&(D.brand_ids=P.join(r.csv)),V&&(D.pet_type=V.join(r.csv)),C&&(D.pet_phase=C.join(r.csv)),E&&(D.breed=E.join(r.csv)),void 0!==A&&(D.pet_id=A),I&&(D.pet_size=I.join(r.csv)),S&&(D.healthcare=S.join(r.csv)),void 0!==x&&(D.customer_id=x),void 0!==T&&(D.user_id=T),void 0!==U&&(D.sid=U),void 0!==L&&(D.Sid=L),void 0!==O&&(D.bonus_points=O),k&&(D.cart_products=k.join(r.csv)),u(z,D);let K=M&&M.headers?M.headers:{};return N.headers={...B,...K,...G.headers},{url:_(z),options:N}}};return{getRecommendationsV2:async(t,n,s,a,r,c,l,p,m,g,u,_,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O)=>v(await i.getRecommendationsV2(t,n,s,a,r,c,l,p,m,g,u,_,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O),o.A,d,e),getRecommendationsV3:async(t,n,s,a,r,c,l,p,m,g,u,_,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O)=>v(await i.getRecommendationsV3(t,n,s,a,r,c,l,p,m,g,u,_,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O),o.A,d,e),getRecommendationsV3Email:async(t,n,s,a,r,c,l,p,m,g,u,_,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O)=>v(await i.getRecommendationsV3Email(t,n,s,a,r,c,l,p,m,g,u,_,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O),o.A,d,e),getRecommendationsV4:async(t,n,s,a,r,c,l,p,m,g,u,_,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O)=>v(await i.getRecommendationsV4(t,n,s,a,r,c,l,p,m,g,u,_,h,R,b,j,w,y,f,P,V,C,E,A,I,S,x,T,U,L,O),o.A,d,e)}};
1class j extends c{getRecommendationsV2(e,i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,v,h,R,j,w,y,f,P,V,C,E,A,I,S,x){return b(this.configuration).getRecommendationsV2(e,i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,v,h,R,j,w,y,f,P,V,C,E,A,I,S,x).then(e=>e(this.axios,this.basePath))}getRecommendationsV3(e,i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,v,h,R,j,w,y,f,P,V,C,E,A,I,S,x){return b(this.configuration).getRecommendationsV3(e,i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,v,h,R,j,w,y,f,P,V,C,E,A,I,S,x).then(e=>e(this.axios,this.basePath))}getRecommendationsV3Email(e,i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,v,h,R,j,w,y,f,P,V,C,E,A,I,S,x){return b(this.configuration).getRecommendationsV3Email(e,i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,v,h,R,j,w,y,f,P,V,C,E,A,I,S,x).then(e=>e(this.axios,this.basePath))}getRecommendationsV4(e,i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,v,h,R,j,w,y,f,P,V,C,E,A,I,S,x){return b(this.configuration).getRecommendationsV4(e,i,t,o,n,s,a,d,r,c,l,p,m,g,u,_,v,h,R,j,w,y,f,P,V,C,E,A,I,S,x).then(e=>e(this.axios,this.basePath))}}class w{isJsonMime(e){let i=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(i.test(e)||"application/json-patch+json"===e.toLowerCase())}constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}}let y=o.A.create();(0,n.WQ)(y),y.defaults.headers.common["X-Caller"]=a.VA,y.defaults.maxRedirects=0,o.A.defaults.headers.common["X-Caller"]=a.VA,o.A.defaults.maxRedirects=0;let f=(0,s.R)(()=>new j(new w({basePath:a.Rt.REACT_APP_RECOMMENDATION_API_URL}),void 0,y)),P=(0,s.R)(()=>new R(new w({basePath:a.Rt.REACT_APP_RECOMMENDATION_API_URL}),void 0,o.A))}}]); 2//# sourceMappingURL=9939-6978fe5e266c17c1.js.map
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.