PageSourceSearch

https://www.royalcanin.com/_next/static/chunks/226.b939d951eb2e20ae.js

js royalcanin.com collected 2026-10-02 02:30:53 UTC 6,560 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[226],{8541:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var a=r(62148),o=r(94024),d=r(18824),n=r(99743),c=r(84319),i=r(51573),s=r(73529),l=r(84449),u=r.n(l),m=r(21023),p=r(81041),v=r(52653);const b=e=>{let{addToCartButtonLabel:t,viewProductButtonLabel:r,product:l,fromLabelAbove:b,fromLabelUnder:h,isD2CView:_,isRenMarket:P,onAddToCart:w,generatePDPURL:g,algoliaData:x,translations:k}=e;var C,R,A,f,j,L;const D=(0,o.useRef)(!1),N=(0,o.useRef)(null),S=(0,o.useRef)(null),{isMobile:T}=(0,i.al)(),B=l.packs.find(e=>e.hasStock),q=null==N||null===(R=N.current)||void 0===R||null===(C=R.shadowRoot)||void 0===C?void 0:C.querySelector("rc-button");q&&q.setAttribute("data-qa","recommended-products-item-add-to-cart-button");const y=e=>{e.preventDefault(),e.stopPropagation(),D.current=!0,null==w||w((0,m.N$)({product:l,pack:B,isRenMarket:P})),(0,v.Hx)({event:v.Bx.AddToCart,eventSource:v.GD.RecommendedProducts,products:[(0,n.b)({product:l,pack:B,algoliaData:x})]})},V=e=>{D.current&&_&&(e.preventDefault(),D.current=!1)};var I;return(0,o.useEffect)(()=>{var e;return null==S||null===(e=S.current)||void 0===e||e.addEventListener("click",V),()=>{var e;null==S||null===(e=S.current)||void 0===e||e.removeEventListener("click",V)}},[]),(0,a.jsx)("a",{ref:S,className:u()["recommended-products-item-link"],href:null==g?void 0:g(l),"data-qa":"recommended-products-item-link",children:(0,a.jsx)(d.R,{ref:N,"data-testid":"recommended-products-item-card",onRcProductCardClick:_?y:void 0,onRcProductCardActionButtonClick:_?y:void 0,title:l.title,category:(0,s.WN)(k,l.categoryLabel),actionButtonLabel:_?t:r,variant:T?"mobile-carousel":"portrait",size:T?"mobile":"desktop",children:(0,a.jsxs)(a.Fragment,{children:[_&&(0,a.jsx)(p.x,{slot:"price",price:null!==(I=null==B?void 0:B.priceLabel)&&void 0!==I?I:"",size:"small",labelAbove:b,labelUnder:h,perPosition:"inline"}),(0,a.jsx)("div",{slot:"product-image",className:u()["recommended-products-item-image"],children:(0,a.jsx)(c.A,{image:(0,c.h)(null===(f=l.images)||void 0===f||null===(A=f[0])||void 0===A?void 0:A.url,{width:154,height:154}),alt:null===(L=l.images)||void 0===L||null===(j=L[0])||void 0===j?void 0:j.alt,widths:[90,105,120,150]})})]})})})}},16052:e=>{e.exports={carousel:"Carousel_carousel__KN1aA","with-navigation":"Carousel_with-navigation__RBP_Y","with-divider":"Carousel_with-divider__hBABP"}},17226:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m});var a=r(62148),o=r(94024),d=r(29551),n=r(17861),c=r.n(n),i=r(19478),s=r(59016),l=r.n(s),u=r(84517);const m=e=>{let{recommendedProductsTranslations:t,products:r,isD2CView:n,onAddToCart:s,generatePDPURL:m,isRenMarket:p,algoliaData:v,translations:b}=e;const{title:h,addToCartButtonLabel:_,viewProductButtonLabel:P,fromLabelAbove:w,fromLabelUnder:g}=t,[x,k]=(0,o.useState)(0),C=Object.keys(r);return(0,a.jsx)("div",{className:l()["recommended-products"],children:(0,a.jsxs)("div",{className:l()["recommended-products-wrapper"],"data-qa":"recommended-products-wrapper",children:[(0,a.jsx)("h2",{className:l()["recommended-products-title"],children:h}),(0,a.jsx)("div",{className:l().tabs,role:"tablist","aria-label":"recommended products tabs",children:C.map((e,t)=>(0,a.jsx)("button",{className:c()(l().tab,{[l().activeTab]:x===t}),onClick:()=>{(e=>{k(e)})(t)},role:"tab","aria-selected":x===t,"aria-controls":"recommended-products-panel-".concat(t),id:"recommended-products-tab-".concat(t),"data-qa":"recommended-products-tab-button",children:e},e))}),C.map((e,t)=>{const o=r[e];return(0,a.jsx)("div",{role:"tabpanel",id:"recommended-products-panel-".concat(t),"aria-labelledby":"recommended-products-tab-".concat(t),hidden:x!==t,className:x===t?l().activeTabContent:l().hiddenTabContent,children:(0,a.jsx)(i.F,{testIdPrefix:"recommended-products-".concat(e),showScrollbar:!0,children:o.map(e=>(0,a.jsx)(d.qr,{children:(0,a.jsx)(u.A,{product:e,isD2CView:n,addToCartButtonLabel:_,viewProductButtonLabel:P,fromLabelAbove:w,fromLabelUnder:g,isRenMarket:p,onAddToCart:s,generatePDPURL:m,algoliaData:v,translations:b})},"".concat(e.mainItem,"-").concat(e.variation,"-").concat(e.ean)))})},e)})]})})}},19478:(e,t,r)=>{"use strict";r.d(t,{F:()=>a.A});var a=r(34358)},34358:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var a=r(62148),o=(r(94024),r(29551)),d=r(17861),n=r.n(d),c=r(49643),i=r(73529),s=r(16052),l=r.n(s);r(33152);const u=e=>{let{children:t,testIdPrefix:r,spaceBetweenSlides:d=0,slidesPerView:s=1.3,showNavigation:u=!1,showScrollbar:m=!1,showSlidesDivider:p=!1,showPagination:v=!1,containerStartContent:b}=e;return(0,a.jsx)("div",{className:n()(l().carousel,{[l()["with-navigation"]]:u,[l()["with-divider"]]:p}),"data-qa":"".concat(r,"-carousel"),children:(0,a.jsxs)(o.RC,{slidesPerView:s,slidesPerGroup:1,spaceBetween:d,navigation:u,watchSlidesProgress:!0,modules:[c.Vx,c.Ze],onAfterInit:e=>{(e=>{var t,a,o;const d=null==e||null===(t=e.el)||void 0===t?void 0:t.querySelector(".swiper-button-next"),n=null==e||null===(a=e.el)||void 0===a?void 0:a.querySelector(".swiper-button-prev"),c=null==e||null===(o=e.el)||void 0===o?void 0:o.querySelector(".swiper-scrollbar");d&&d.setAttribute("data-qa","".concat(r,"-carousel-next-button")),n&&n.setAttribute("data-qa","".concat(r,"-carousel-previous-button")),c&&c.setAttribute("data-qa","".concat(r,"-carousel-slider"))})(e)},pagination:!!v&&{clickable:!0,renderBullet:(e,t)=>(0,i.ap)(e,t,"Slide")},breakpoints:{560:{slidesPerView:2,slidesPerGroup:1},768:{slidesPerView:3,slidesPerGroup:1},1024:{slidesPerView:4,slidesPerGroup:1}},scrollbar:!!m&&{draggable:!0,dragSize:"auto"},observer:!0,observeParents:!0,children:[b&&(0,a.jsx)("div",{slot:"container-start",children:b}),(0,a.jsx)("div",{"data-qa":"".concat(r,"-carousel-content"),children:t})]})})}},59016:e=>{e.exports={"recommended-products":"RecommendedProducts_recommended-products__NJWJk","recommended-products-wrapper":"RecommendedProducts_recommended-products-wrapper___kZX9","recommended-products-title":"RecommendedProducts_recommended-products-title__eNBfD",tabs:"RecommendedProducts_tabs__zM9pe",tab:"RecommendedProducts_tab__jkJpH",activeTab:"RecommendedProducts_activeTab__3Dc31",activeTabContent:"RecommendedProducts_activeTabContent__eIEI8",hiddenTabContent:"RecommendedProducts_hiddenTabContent__maDCF"}},84449:e=>{e.exports={"recommended-products-item-link":"RecommendedProductsItem_recommended-products-item-link__P5kSA","recommended-products-item-image":"RecommendedProductsItem_recommended-products-item-image__y8SQA"}},84517:(e,t,r)=>{"use strict";r.d(t,{A:()=>a.A});var a=r(8541)}}]);

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.