PageSourceSearch

https://www.zooplus.de/_next/static/chunks/9978.c147bf8fe3f61f99.js

js zooplus.de collected 2026-09-24 18:14:49 UTC 75,807 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9978],{99978:(e,t,r)=>{r.r(t),r.d(t,{default:()=>tY});var n,a,o,i,c,s,l,d,u,p,f,m,h,g,_,v,x,C,y,b,j=r(80263),P=r(88704),w=r(930),T=r(53239),I={exports:{}},N={exports:{}};!function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 0xff00ff&t.rotl(e,8)|0xff00ff00&t.rotl(e,24);for(var r=0;r<e.length;r++)e[r]=t.endian(e[r]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(t){for(var r=[],n=0;n<t.length;n+=3)for(var a=t[n]<<16|t[n+1]<<8|t[n+2],o=0;o<4;o++)8*n+6*o<=8*t.length?r.push(e.charAt(a>>>6*(3-o)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],n=0,a=0;n<t.length;a=++n%4)0!=a&&r.push((e.indexOf(t.charAt(n-1))&Math.pow(2,-2*a+8)-1)<<2*a|e.indexOf(t.charAt(n))>>>6-2*a);return r}};N.exports=t}(),N.exports;var R={utf8:{stringToBytes:function(e){return R.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(R.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}},H=function(e){var t;return null!=e&&(S(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&S(t.slice(0,0))||!!e._isBuffer)};function S(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}!function(){var e=N.exports,t=R.utf8,r=R.bin,n=function(a,o){a.constructor==String?a=o&&"binary"===o.encoding?r.stringToBytes(a):t.stringToBytes(a):H(a)?a=Array.prototype.slice.call(a,0):Array.isArray(a)||a.constructor===Uint8Array||(a=a.toString());for(var i=e.bytesToWords(a),c=8*a.length,s=0x67452301,l=-0x10325477,d=-0x67452302,u=0x10325476,p=0;p<i.length;p++)i[p]=(i[p]<<8|i[p]>>>24)&0xff00ff|(i[p]<<24|i[p]>>>8)&0xff00ff00;i[c>>>5]|=128<<c%32,i[(c+64>>>9<<4)+14]=c;for(var f=n._ff,m=n._gg,h=n._hh,g=n._ii,p=0;p<i.length;p+=16){var _=s,v=l,x=d,C=u;s=f(s,l,d,u,i[p+0],7,-0x28955b88),u=f(u,s,l,d,i[p+1],12,-0x173848aa),d=f(d,u,s,l,i[p+2],17,0x242070db),l=f(l,d,u,s,i[p+3],22,-0x3e423112),s=f(s,l,d,u,i[p+4],7,-0xa83f051),u=f(u,s,l,d,i[p+5],12,0x4787c62a),d=f(d,u,s,l,i[p+6],17,-0x57cfb9ed),l=f(l,d,u,s,i[p+7],22,-0x2b96aff),s=f(s,l,d,u,i[p+8],7,0x698098d8),u=f(u,s,l,d,i[p+9],12,-0x74bb0851),d=f(d,u,s,l,i[p+10],17,-42063),l=f(l,d,u,s,i[p+11],22,-0x76a32842),s=f(s,l,d,u,i[p+12],7,0x6b901122),u=f(u,s,l,d,i[p+13],12,-0x2678e6d),d=f(d,u,s,l,i[p+14],17,-0x5986bc72),l=f(l,d,u,s,i[p+15],22,0x49b40821),s=m(s,l,d,u,i[p+1],5,-0x9e1da9e),u=m(u,s,l,d,i[p+6],9,-0x3fbf4cc0),d=m(d,u,s,l,i[p+11],14,0x265e5a51),l=m(l,d,u,s,i[p+0],20,-0x16493856),s=m(s,l,d,u,i[p+5],5,-0x29d0efa3),u=m(u,s,l,d,i[p+10],9,0x2441453),d=m(d,u,s,l,i[p+15],14,-0x275e197f),l=m(l,d,u,s,i[p+4],20,-0x182c0438),s=m(s,l,d,u,i[p+9],5,0x21e1cde6),u=m(u,s,l,d,i[p+14],9,-0x3cc8f82a),d=m(d,u,s,l,i[p+3],14,-0xb2af279),l=m(l,d,u,s,i[p+8],20,0x455a14ed),s=m(s,l,d,u,i[p+13],5,-0x561c16fb),u=m(u,s,l,d,i[p+2],9,-0x3105c08),d=m(d,u,s,l,i[p+7],14,0x676f02d9),l=m(l,d,u,s,i[p+12],20,-0x72d5b376),s=h(s,l,d,u,i[p+5],4,-378558),u=h(u,s,l,d,i[p+8],11,-0x788e097f),d=h(d,u,s,l,i[p+11],16,0x6d9d6122),l=h(l,d,u,s,i[p+14],23,-0x21ac7f4),s=h(s,l,d,u,i[p+1],4,-0x5b4115bc),u=h(u,s,l,d,i[p+4],11,0x4bdecfa9),d=h(d,u,s,l,i[p+7],16,-0x944b4a0),l=h(l,d,u,s,i[p+10],23,-0x41404390),s=h(s,l,d,u,i[p+13],4,0x289b7ec6),u=h(u,s,l,d,i[p+0],11,-0x155ed806),d=h(d,u,s,l,i[p+3],16,-0x2b10cf7b),l=h(l,d,u,s,i[p+6],23,0x4881d05
1),s=h(s,l,d,u,i[p+9],4,-0x262b2fc7),u=h(u,s,l,d,i[p+12],11,-0x1924661b),d=h(d,u,s,l,i[p+15],16,0x1fa27cf8),l=h(l,d,u,s,i[p+2],23,-0x3b53a99b),s=g(s,l,d,u,i[p+0],6,-0xbd6ddbc),u=g(u,s,l,d,i[p+7],10,0x432aff97),d=g(d,u,s,l,i[p+14],15,-0x546bdc59),l=g(l,d,u,s,i[p+5],21,-0x36c5fc7),s=g(s,l,d,u,i[p+12],6,0x655b59c3),u=g(u,s,l,d,i[p+3],10,-0x70f3336e),d=g(d,u,s,l,i[p+10],15,-1051523),l=g(l,d,u,s,i[p+1],21,-0x7a7ba22f),s=g(s,l,d,u,i[p+8],6,0x6fa87e4f),u=g(u,s,l,d,i[p+15],10,-0x1d31920),d=g(d,u,s,l,i[p+6],15,-0x5cfebcec),l=g(l,d,u,s,i[p+13],21,0x4e0811a1),s=g(s,l,d,u,i[p+4],6,-0x8ac817e),u=g(u,s,l,d,i[p+11],10,-0x42c50dcb),d=g(d,u,s,l,i[p+2],15,0x2ad7d2bb),l=g(l,d,u,s,i[p+9],21,-0x14792c6f),s=s+_>>>0,l=l+v>>>0,d=d+x>>>0,u=u+C>>>0}return e.endian([s,l,d,u])};n._ff=function(e,t,r,n,a,o,i){var c=e+(t&r|~t&n)+(a>>>0)+i;return(c<<o|c>>>32-o)+t},n._gg=function(e,t,r,n,a,o,i){var c=e+(t&n|r&~n)+(a>>>0)+i;return(c<<o|c>>>32-o)+t},n._hh=function(e,t,r,n,a,o,i){var c=e+(t^r^n)+(a>>>0)+i;return(c<<o|c>>>32-o)+t},n._ii=function(e,t,r,n,a,o,i){var c=e+(r^(t|~n))+(a>>>0)+i;return(c<<o|c>>>32-o)+t},n._blocksize=16,n._digestsize=16,I.exports=function(t,a){if(null==t)throw Error("Illegal argument "+t);var o=e.wordsToBytes(n(t,a));return a&&a.asBytes?o:a&&a.asString?r.bytesToString(o):e.bytesToHex(o)}}(),I.exports;var M=r(12530),A=function(e){var t=e.apiUrl,r=e.brand,n=e.country,a=e.petType;return(0,w.sH)(void 0,void 0,void 0,function(){var e,o;return(0,w.YH)(this,function(i){switch(i.label){case 0:e=I.exports("".concat(r,"-").concat(a,"-").concat(n)),i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch((0,M.A)(t,"/tree/",e))];case 2:return[4,i.sent().json()];case 3:return B((o=i.sent()).data),[2,o];case 4:return i.sent(),[2,null];case 5:return[2]}})})},B=function(e){var t;U(e)&&(null==(t=e.children)||t.forEach(function(t){t.parent=e,B(t)}))},E=function(e){var t=function(e,r){r.unshift(e),e.parent&&t(e.parent,r)},r=[];return t(e,r),r},z=function(e,t){var r,n;if(t.nodeId===e)return t;if(U(t)&&t.children)try{for(var a=(0,w.Ju)(t.children),o=a.next();!o.done;o=a.next()){var i=o.value,c=z(e,i);if(c)return c}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},L=function(e){return["Standard",void 0].includes(e.template)},k=function(e){return"StandardWithSearch"===e.template},U=function(e){return k(e)||L(e)},D=function(e){return W(e)||O(e)||F(e)||Z(e)||q(e)},W=function(e){return"single-product"===e["results/template"]},O=function(e){return"carousel-products"===e["results/template"]},F=function(e){return"info-result-page"===e["results/template"]},Z=function(e){return"multipleProducts"===e["results/template"]},q=function(e){return"pdMultipleProducts"===e["results/template"]},X=r(22452),Q=r(91650),G={wrapper:"AppHeader-module_wrapper__YK7Bb",headingWrap:"AppHeader-module_headingWrap__K6EtJ",headingWrapMinHeight:"AppHeader-module_headingWrapMinHeight__a7Vvy",questionInfoBtnWrap:"AppHeader-module_questionInfoBtnWrap__KaDpJ",title:"AppHeader-module_title__4wwlm",subtitle:"AppHeader-module_subtitle__P4xho",backBtn:"AppHeader-module_backBtn__-7Ict",infoButton:"AppHeader-module_infoButton__p1tc7",closeIconWrap:"AppHeader-module_closeIconWrap__fOHYa"},K=r(5505),V=function(e){var t=e.children,r=e.mode,n=e.subtitle,a=e.question,o=e.showInfo,i=e.onInfoClick,c=e.nodeHierarchyLength,s=e.onBackButtonClick,l=e.onModalClose,d=(0,X.U)().petType,u=(0,K.Bd)().t;return(0,j.jsxs)("div",(0,w.Cl)({className:G.wrapper,"data-cy-crumbs":c},{children:[(0,j.jsxs)("div",(0,w.Cl)({className:"".concat(G.headingWrap," ").concat(G.headingWrapMinHeight)},{children:[c>1&&(0,j.jsxs)("a",(0,w.Cl)({href:"/",className:G.backBtn,onClick:function(e){e.preventDefault(),s()},"data-cy":"back-button"},{children:[(0,j.jsx)(Q.sDV,{}),u("sliderNav/back")]})),(0,j.jsx)("span",(0,w.Cl)({className:G.closeIconWrap,"data-cy":"fa-modal-close-icon",onClick:l},{children:(0,j.jsx)(Q.anW,{className:G.closeIcon})}))]})),(0,j.jsxs)("div",(0,w.Cl)({className:G.headingWrap},{children:[a?(0,j.jsx)("h2",(0,w.Cl)({className:G.title,"data-size":"intro"===r?"large":"","data-cy":"fa-question"},{children:a})):(0,j.jsx)("h2",(0,w.Cl)({className:G.title,"data-cy":"result-page-title"},{children:u("cat"===d?"resultPage/titleCat":"resultPage/titleDog")})),n&&(0,j.jsx)("p",(0,w.Cl)({className:G.subtitle},{children:n})),o&&(0,j.jsx)("button",(0,w.Cl)({className:G.infoButton,"data-cy":"info-button",onClick:i},{children:(0,j.jsx)(Q.le3,{})}))]})),t]}))},J={wrapper:"BreadCrumbNav-module_wrapper__yqsxT",wrapperMarginTopAdjustment:"BreadCrumbNav-module_wrapperMarginTopAdjustment__Ae1-r",crumb:"BreadCrumbNav-module_crumb__IhM2A",crumbTitle:"BreadCrumbNav-module_crumbTitle__WPtP0"},Y=function(e){var t=e.breadcrumbs,r=e.isResultPage,n=(0,T.useRef)(null),a=(0,T.useRef)(null),o=(0,K.Bd)().t;if((0,T.useEffect)(function(){n.current&&a.current&&n.current.scrollWidth>a.current.clientWidth&&(n.current.scrollLeft=n.current.scrollWidth)},[t]),!t.length)return null;var i=(0,w.fX)([],(0,w.zs)(t),!1);return r&&i.push({title:o("resultPage/lastCrumb")}
1),(0,j.jsx)("div",(0,w.Cl)({ref:a},{children:(0,j.jsx)("div",(0,w.Cl)({ref:n,className:"".concat(J.wrapper," ").concat(i.length>1?J.wrapperMarginTopAdjustment:"")},{children:i.map(function(e,t){return(0,j.jsxs)("div",(0,w.Cl)({className:J.crumb,onClick:e.onClick,"data-breadcrumb":e.title},{children:[(0,j.jsx)(Q.$Hc,{}),(0,j.jsx)("span",(0,w.Cl)({className:J.crumbTitle},{children:e.onClick?(0,j.jsx)("a",(0,w.Cl)({href:"/",onClick:function(t){var r;t.preventDefault(),null==(r=e.onClick)||r.call(e)}},{children:e.title})):e.title}))]}),t)})}))}))},$=r(87495);function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var et=function(e){return T.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1702.17 1702.17"},e),n||(n=T.createElement("defs",null,T.createElement("style",null,".error-cat_svg__cls-2{fill:#fff}.error-cat_svg__cls-3{fill:#568413}.error-cat_svg__cls-4{fill:#81c52d}"))),T.createElement("g",{id:"error-cat_svg__Layer_2","data-name":"Layer 2"},T.createElement("g",{id:"error-cat_svg__Layer_1-2","data-name":"Layer 1"},T.createElement("circle",{cx:851.09,cy:851.09,r:851.09,style:{fill:"#81c52e"}}),a||(a=T.createElement("path",{className:"error-cat_svg__cls-2",d:"M457.72 1351.08h482.4a61.48 61.48 0 0 0 48.9-24.15c41.9-55 135.54-203.41 144.55-441.46 0 0 57.61-387.79-91.53-536.07a20.9 20.9 0 0 0-29.59.1c-17.94 18.12-42.52 39.3-53.34 75.31 0 0-60-9.94-121.53-1.63 0 0-26.45-62.34-60.6-82.77a25.41 25.41 0 0 0-29.3 2.27c-14.65 12.17-38.56 42.18-56.44 105.45 0 0-56.54 168-99.77 204.53 0 0-96.45 126.38-134.7 143 0 0-126.38 94.79-111.41 324.27 0 0-73.17-8.32-99.77-148 0 0-20-94.79-8.32-196.22 0 0 3.33-53.22-31.59-53.22 0 0-31.78-5.81-43.24 56.54 0 0-20.57 78.2-1.89 204.51 0 0 22.24 197.48 184.81 244.47 0 0-1.5 66.15 84.12 115.54a56.5 56.5 0 0 0 28.24 7.53Z"})),o||(o=T.createElement("path",{className:"error-cat_svg__cls-3",d:"M1365.21 1431.81h-541.7a35.46 35.46 0 0 1-34.1-45.21l34.76-121.6a35.46 35.46 0 0 1 34.1-25.71h482.27a35.47 35.47 0 0 1 34.76 28.41l24.7 121.59a35.47 35.47 0 0 1-34.79 42.52ZM1103.34 1189.29a18.48 18.48 0 0 1-18.48-18.48V1018.4a18.48 18.48 0 1 1 37 0v152.41a18.47 18.47 0 0 1-18.52 18.48ZM1013.75 1193.91a18.47 18.47 0 0 1-15.46-8.33L929.6 1081.1a18.47 18.47 0 1 1 30.87-20.3l68.7 104.48a18.48 18.48 0 0 1-15.42 28.63ZM1196.19 1193.91a18.48 18.48 0 0 1-15.43-28.63l68.7-104.48a18.48 18.48 0 1 1 30.88 20.3l-68.7 104.48a18.45 18.45 0 0 1-15.45 8.33ZM1272.61 407.64c16.76-15.95 33.07-21.9 61-16.78 20.51 3.59 31.23-1.92 41.15-14.18 8.11-8.85 7.35-24.84-7.7-38.69-17-13.89-42.94-14.53-49.2-2.75-8.08 15.19-17 18.25-28.4 12.19l-26.88-18.18c2.67-6.86 9.2-21.9 15.18-30.41 7.81-11.94 27.33-23 49.35-18.61 16.48 2.91 35.44 6.65 56 17.55 42.93 22.81 68.54 69.06 53.53 100.06-6.53 15-20.81 31.81-37.72 38.9-13.43 6-30.46 9.64-55.59 6.52-24-1.56-39.75 19.8-46.06 33.5-7 10.41-28.87.25-41.77-7.58-7.77-4.62-11.73-8.18-7.17-21.34 2.67-5.9 13.85-30.65 24.28-40.2ZM1199.86 540c-2.09-8.91 1.64-19.59 9.06-31.72 8.41-13.08 30-20.63 50.88-10.49 10.64 5.66 15 13.85 19.87 21.28 4.62 7.81 4.29 21.28-2.1 30.55-12.17 17.4-32.78 25.94-53.3 15-10.27-5.43-21.96-14.57-24.41-24.62Z"})),i||(i=T.createElement("path",{className:"error-cat_svg__cls-2",d:"M1151.79 322.61c2.58-12.43 8.09-20.21 22.31-26.63 10.38-4.78 13.5-10.62 14.15-19.25.9-6.53-4.44-13.51-15.55-15.06-12-1-23.93 6.85-23.07 14.12 1.1 9.38-2 13.54-9 14.37l-17.8.18c-.94-3.93-2.69-12.76-2.65-18.47-.2-7.82 5.16-18.91 16.47-23.8 8.35-3.83 18.07-8.06 30.74-9.55 26.5-3.11 52.49 9.77 55.4 28.45 1.75 8.83.54 20.86-4.88 29.34-4.19 6.91-10.74 13.86-23.06 20.3-11.33 6.79-11.76 21.35-10.33 29.5.09 6.88-13 9.13-21.22 9.62-5 .34-7.85 0-9.9-7.4-.67-3.49-3.34-18.15-1.61-25.72Zm8.48 82.45c-3.72-3.37-5.38-9.36-5.82-17.15-.28-8.53 7.09-18.66 19.7-20.62 6.56-.77 11.11 1.55 15.61 3.4 4.52 2.09 8.58 8.27 8.59 14.45-.06 11.65-6.7 21.94-19.36 23.43-6.34.74-14.47.27-18.72-3.51Z"})),c||(c=T.createElement("ellipse",{className:"error-cat_svg__cls-4",cx:802.27,cy:554.46,rx:22.11,ry:35.98})),s||(s=T.createElement("ellipse",{className:"error-cat_svg__cls-4",cx:987.65,cy:554.46,rx:22.11,ry:35.98})),l||(l=T.createElement("path",{className:"error-cat_svg__cls-4",d:"M922.28 634.63c-8.15-4.15-30.45-15.2-54.08 1.39a10.24 10.24 0 0 0-4.3 7.13c-.12 1 .69 2.33 1.68 3.46a13.93 13.93 0 0 0 4.42 3.29l19.33 7.29a13.83 13.83 0 0 0 11.79-.21l20.54-8.83a10.91 10.91 0 0 0 3.52-2.69c1.54-1.84 2.88-4.71.47-8a9.36 9.36 0 0 0-3.37-2.83Z"})))))},er=function(e){return(0,j.jsx)(et,(0,w.Cl)({viewBox:"0 0 1702.17 1702.17",role:"img",fill:"
1currentColor"},e))};function en(){return(en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ea=function(e){return T.createElement("svg",en({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1702.17 1702.17"},e),d||(d=T.createElement("defs",null,T.createElement("style",null,".error-dog_svg__cls-2{fill:#fff}.error-dog_svg__cls-3{fill:#81c52d}.error-dog_svg__cls-4{fill:none;stroke:#81c52d;stroke-linecap:round;stroke-miterlimit:10;stroke-width:9px}.error-dog_svg__cls-5{fill:#568413}"))),T.createElement("g",{id:"error-dog_svg__Layer_2","data-name":"Layer 2"},T.createElement("g",{id:"error-dog_svg__Layer_1-2","data-name":"Layer 1"},T.createElement("circle",{cx:851.09,cy:851.09,r:851.09,style:{fill:"#81c52e"}}),u||(u=T.createElement("path",{className:"error-dog_svg__cls-2",d:"M585.23 1065c-335.23-37.89-289-337.62-289-337.62s-57.3 44.07-55.1 158.68c-22-2.21-28.65-17.63-28.65-17.63s-13.22 127.82 68.32 163.09c-22 15.42-22 11-22 11S328.69 1180 534 1098"})),p||(p=T.createElement("path",{className:"error-dog_svg__cls-2",d:"M565.71 1135.83c-185.5-174.94-292.86 238.68-14.38 226.92 91.15-.75 38.25-203.51 38.25-203.51M844 1138.74c215.75-135.88 241.34 290.68-29.64 225.44-89.29-18.31 1.7-207.06 1.7-207.06"})),f||(f=T.createElement("path",{className:"error-dog_svg__cls-2",d:"M868.15 1359.75c-22.89 7.27-49.18 9.49-78.78 8.34h-.12c-32.41-1.24-178.2 3.82-236.33-3-7.89-.91-14.16-2.07-18.33-3.48-153.92-52.18-178.39-203.57 40-626.14l207.65-54.21.47-2.56 2.44 1.8 2.93-.79-.47 2.54 174.48 125c42.91 386.17 8.61 519.94-93.94 552.5ZM838.79 454s99-207.17 156.36-209.38 52.12 396.71 52.12 396.71ZM703.4 454s-99-207.17-156.35-209.38-52.12 396.71-52.12 396.71Z"})),m||(m=T.createElement("path",{className:"error-dog_svg__cls-2",d:"M539.63 244.75s-98.34 61.06-96.28 89.91 187.9 6.56 187.9 6.56ZM1000.53 245.69s98.35 61.06 96.29 89.91-187.91 6.57-187.91 6.57ZM1047.27 625.94a243.66 243.66 0 0 1-34.82 125.43C965.25 830.38 874.82 883.8 771 883.8c-152.55 0-276.23-115.44-276.23-257.86 0-77.22 36.36-146.51 94-193.74 48.63-39.92 112.42-64.12 182.24-64.12 152.58 0 276.26 115.44 276.26 257.86Z"})),h||(h=T.createElement("ellipse",{className:"error-dog_svg__cls-3",cx:663.63,cy:519.7,rx:23.53,ry:33.22})),g||(g=T.createElement("ellipse",{className:"error-dog_svg__cls-3",cx:886.05,cy:519.7,rx:23.53,ry:33.22})),_||(_=T.createElement("path",{className:"error-dog_svg__cls-3",d:"M820 590.58c-14.84-10-55.43-36.74-98.32 3.12-4.3 4-7.17 10.23-7.79 17.16-.22 2.51 1.25 5.61 3.06 8.33a27.82 27.82 0 0 0 4.8 5.49 24.37 24.37 0 0 0 5.31 3.49l33.12 16.61a19.62 19.62 0 0 0 21.45-.46l36.2-20.56a21 21 0 0 0 2.12-1.33 21.23 21.23 0 0 0 5.37-5.76c2.8-4.41 5.2-11.33.82-19.32a19.41 19.41 0 0 0-6.14-6.77Z"})),v||(v=T.createElement("path",{className:"error-dog_svg__cls-4",d:"M657.83 720.77S626.62 692.35 743 691.5c0 0 28.67-.84 28.67-65.76"})),x||(x=T.createElement("path",{className:"error-dog_svg__cls-4",d:"M882.55 720.77s31.21-28.42-85.14-29.27c0 0-28.66-.84-28.66-65.76"})),C||(C=T.createElement("path",{className:"error-dog_svg__cls-5",d:"M1365.21 1431.81h-541.7a35.46 35.46 0 0 1-34.1-45.21l34.76-121.6a35.46 35.46 0 0 1 34.1-25.71h482.27a35.47 35.47 0 0 1 34.76 28.41l24.7 121.59a35.47 35.47 0 0 1-34.79 42.52ZM1103.34 1189.29a18.48 18.48 0 0 1-18.48-18.48V1018.4a18.48 18.48 0 1 1 37 0v152.41a18.47 18.47 0 0 1-18.52 18.48ZM1013.75 1193.91a18.47 18.47 0 0 1-15.46-8.33L929.6 1081.1a18.47 18.47 0 1 1 30.87-20.3l68.7 104.48a18.48 18.48 0 0 1-15.42 28.63ZM1196.19 1193.91a18.48 18.48 0 0 1-15.43-28.63l68.7-104.48a18.48 18.48 0 1 1 30.88 20.3l-68.7 104.48a18.45 18.45 0 0 1-15.45 8.33ZM1311.43 458.27c16.76-15.94 33.07-21.89 61-16.77 20.51 3.58 31.23-1.92 41.15-14.19 8.11-8.85 7.35-24.84-7.7-38.68-17-13.89-42.94-14.53-49.2-2.76-8.08 15.2-17 18.25-28.4 12.19l-26.88-18.17c2.67-6.87 9.2-21.91 15.18-30.42 7.81-11.93 27.33-23 49.35-18.6 16.48 2.91 35.44 6.65 56 17.55 42.93 22.81 68.53 69.05 53.53 100.05-6.53 15-20.81 31.82-37.73 38.91-13.42 6-30.45 9.64-55.58 6.51-24-1.55-39.75 19.8-46.06 33.51-7 10.41-28.87.24-41.77-7.58-7.77-4.62-11.73-8.18-7.17-21.35 2.65-5.9 13.85-30.64 24.28-40.2Zm-72.75 132.34c-2.09-8.9 1.64-19.58 9.06-31.72 8.41-13.07 30-20.62 50.88-10.48 10.64 5.65 15.05 13.84 19.87 21.27 4.62 7.82 4.29 21.28-2.1 30.55-12.17 17.41-32.78 25.94-53.3 15-10.25-5.41-21.96-14.55-24.41-24.62Z"})),y||(y=T.createElement("path",{className:"error-dog_svg__cls-2",d:"M1190.61 373.24c2.58-12.43 8.09-20.21 22.31-26.63 
110.38-4.78 13.5-10.61 14.15-19.25.9-6.52-4.44-13.51-15.55-15.05-12-1-23.93 6.84-23.07 14.11 1.1 9.38-2 13.55-9 14.37l-17.81.19c-.93-3.93-2.68-12.76-2.64-18.47-.2-7.82 5.16-18.91 16.47-23.81 8.35-3.83 18.07-8.06 30.74-9.54 26.5-3.11 52.49 9.77 55.4 28.45 1.75 8.83.54 20.85-4.88 29.34-4.19 6.91-10.74 13.86-23.06 20.29-11.33 6.8-11.76 21.35-10.33 29.51.09 6.88-13 9.12-21.22 9.62-4.95.34-7.85 0-9.9-7.4-.67-3.49-3.34-18.16-1.61-25.73Zm8.48 82.45c-3.72-3.37-5.38-9.35-5.82-17.15-.28-8.52 7.09-18.66 19.7-20.61 6.56-.77 11.11 1.55 15.61 3.4 4.52 2.08 8.58 8.26 8.59 14.44-.06 11.66-6.7 22-19.36 23.43-6.34.8-14.47.27-18.72-3.51Z"})))))},eo=function(e){return(0,j.jsx)(ea,(0,w.Cl)({viewBox:"0 0 1702.17 1702.17",role:"img",fill:"currentColor"},e))},ei={img:"ErrorVisual-module_img__feuxv",title:"ErrorVisual-module_title__CDrLS"},ec=function(){var e=(0,X.U)().petType;return(0,j.jsxs)("div",{children:["dog"===e?(0,j.jsx)(eo,{className:ei.img}):(0,j.jsx)(er,{className:ei.img}),(0,j.jsxs)("p",(0,w.Cl)({className:ei.title},{children:["dog"===e&&"Woof?","dog"!==e&&"Meow?"]}))]})},es={whiteContainer:"Error-module_whiteContainer__POW4j",text:"Error-module_text__7MmUW"},el=function(){var e=(0,K.Bd)().t;return(0,j.jsxs)("span",(0,w.Cl)({className:es.whiteContainer},{children:[(0,j.jsx)(ec,{}),(0,j.jsx)("p",(0,w.Cl)({className:es.text},{children:e("error/genericErrorMsg")}))]}))},ed=function(e){var t;return{mainProductMeta:ef((null==(t=e["results/productId"])?void 0:t.length)?e["results/productId"][0]:void 0),complementaryProductMetas:ep(e["results/complementaryProductIds"]),alternativeProductMetas:ep(e["results/alternativeProductIds"]),otherFlavourProductMetas:ep(e["results/otherFlavourProductIds"]),relatedProductsContentBody:e["results/relatedProductsContent/body"],relatedProductsContentTitle:e["results/relatedProductsContent/title"]}},eu=function(e){for(var t=[],r=0;r<30;r++){var n=e["results/mainProductId_".concat(r)],a=e["results/complementaryIds_".concat(r)];n&&t.push({mainProductMeta:n,complementaryProductMetas:a||[]})}return t},ep=function(e){return(null==e?void 0:e.map(function(e){return ef(e)}).filter(function(e){return!!e}))||[]},ef=function(e){if(e){for(var t={id:e.id,description:e.description,coreFeatures:e.coreFeatures,flavour:e.flavour,howItHelps:e.howItHelps},r=0;r<30;r++){var n=e["results/howItHelps_".concat(r)];n&&(t.howItHelps||(t.howItHelps=[]),t.howItHelps.push(n));var a=e["results/coreFeatures_".concat(r)];a&&(t.coreFeatures||(t.coreFeatures=[]),t.coreFeatures.push(a))}return t}},em=["PURCHASABLE","VISIBLE_NOT_PURCHASABLE"],eh={Hills:12001,HillsSciencePlan:372,RoyalCanin:440,RoyalCaninBreed:441,RoyalCaninSize:443},eg=function(e){var t=e.hoppsUrl,r=e.siteId,n=e.locale,a=e.productMetaDatas,o=e.errorHandler;return(0,w.sH)(void 0,void 0,void 0,function(){var e,i;return(0,w.YH)(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),(e=new URLSearchParams).append("psIds",eT(a).join(",")),e.append("include","pgMain,articleScMain"),[4,fetch((0,M.A)(t,"/v2/sites/".concat(r,"/").concat(n,"/products?").concat(e)),{headers:{"Content-Type":"application/json","x-caller":"food-advisor-client"}})];case 1:return[4,c.sent().json()];case 2:return[2,e_(c.sent().products,a)];case 3:throw i=c.sent(),o.captureException(i);case 4:return[2]}})})},e_=function(e,t){return ex(e.map(function(e){var t,r,n,a,o,i,c,s,l,d,u=eC(e.articles),p=u.article,f=u.offer;return{shopIdentifier:e.shopIdentifier,variantId:p.variantId,summary:null!=(t=p.summary)?t:void 0,path:e.path,picture:null!=(r=p.imageUrl)?r:"",name:e.name,articleId:p.id,priceBeforeLabel:null!=(a=null==(n=f.referencePrice)?void 0:n.label)?a:"",price:f.price.value,priceNowLabel:f.price.label,pricePerUnitLabel:f.unitPrice?"".concat(f.unitPrice.label," / ").concat(null!=(i=null==(o=p.unit)?void 0:o.nameLocalized)?i:""):"",packageSize:p.name,productReviewAverage:e.feedbackAggregate.averageRating,productReviewCount:e.feedbackAggregate.reviewCount,badgeText:null!=(s=null==(c=p.shopCategoryMain)?void 0:c.shortPathLocalized)?s:null==(l=e.productGroupMainAssignment)?void 0:l.shortPathLocalized,status:(null==(d=e.articles)?void 0:d.some(function(e){var t;return null==(t=e.offers)?void 0:t.some(function(e){return em.includes(e.visibility)})}))?"Available":"Not Available"}}),t)},ev=function(e,t){var r,n,a=[];try{for(var o=(0,w.Ju)(Object.entries(e)),i=o.next();!i.done;i=o.next()){var c=(0,w.zs)(i.value,2),s=c[0],l=c[1];"string"==typeof s&&"string"==typeof l&&s.includes(t)&&a.push(l)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},ex=function(e,t){return e.forEach(function(e){var r=t.find(function(t){return e.shopIdentifier===t.id});if(r){var n=ev(r,"coreFeatures"),a=ev(r,"howItHelps");n&&a&&(e.howItHelps=a,e.coreFeatures=n),r.description&&(e.description=r.description),e.flavour=r.flavour}}),e},eC=function(e){var t,r,n,a,o,i,c={article:e[0],offer:e[0].offers[0]},s=null!=(i=null==(o=c.offer)?void 0:o.price.value)?i:1/0;try{for(var l=(0,w.Ju)(e),d=l.next();!d.done;d=l.next()){var u=d.value;try{for(var p=(n=void 0,(0,w.Ju)(u.offers)),f=p.next();!f.done;f=p.next()){var m=f.value;"PURCHASABLE"===m.visibility&&!m.outOfStock&&m.price.value<s&&(s=m.price.value,c={article:u,offer:m})}}catch(e){n={error:e}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return c},ey={rc:[eh.RoyalCanin,eh.RoyalCaninBreed,eh.RoyalCaninSize],hills:[eh.Hills,eh.HillsSciencePlan]},eb=function(e){var t=e.zootopiaUrl,r=e.siteId,n=e.language;e.country;var a=e.productIds,o=e.brand,i=e.petType,c=e.errorHandler;return(0,w.sH)(void 0,void 0,void 0,function(){var e,s,l,d,u,p;return(0,w.YH)(this,function(f){switch(f.label){case 0:e=ey[o],s="dog"===i?"DOGS":"CATS",f.label=1;case 1:return f.trys.push([1,4,,5]),l="product_id=".concat(a,"&pet_type=").concat(s),e&&(l=l.concat("&brand_ids=".concat(e))),[4,fetch((0,M.A)(t,"/v2/sites/".concat(r,"/").concat(n,"/pages/food_advisor/recommendations?").concat(l)),{headers:{"x-caller":"food-advisor-client"}})];case 2:return[4,f.sent().json()];case 3:return[2,(null==(d=f.sent())?void 0:d.length)&&(null==(p=d[0].recommendations)?void 0:p.length)?ej(d[0].recommendations):[]];case 4:return u=f.sent(),c.captureException(u),[2,[]];case 5:return[2]}})})},ej=function(e){return e.map(function(e){return{productId:e.product_id,image:e.image,rating:e.rating,reviewCount:e.review_count,productName:e.product_name,link:e.link,status:e.status,productType:e.productType}})},eP=function(e,t){return(0,w.sH)(void 0,void 0,void 0,function(){var r;return(0,w.YH)(this,function(n){switch(n.label){case 0:return[4,fetch((0,M.A)(e,"/sites"),{headers:{"Content-Type":"application/json","X-Caller":"food-advisor-client"}})];case 1:return[4,n.sent().json()];case 2:return[2,{siteId:(r=n.sent().find(function(e){return e.foodAdvisorCountry===t})).id,language:r.language,locale:"".concat(r.language,"-").concat(r.country.toUpperCase())}]}})})},ew=function(e,t){return e.find(function(e){return e.shopIdentifier===t.id})},eT=function(e){return(0,w.fX)([],(0,w.zs)(new Set(e.map(function(e){return e.id}).filter(function(e){return!!e}))),!1)},eI=function(e,t){return t.map(function(t){return ew(e,t)}).filter(function(e){return!!e})},eN=function(e){var t=e.rawProducts;return e.productItemMetas.map(function(e){var r=ew(t,e.mainProductMeta[0]);return r&&(r.crossSellProducts=[],e.complementaryProductMetas.forEach(function(e){var n,a=ew(t,e);a&&(null==(n=r.crossSellProducts)||n.push(a))})),r}).filter(function(e){return!!e})};function eR(){return(eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eH=function(e){return T.createElement("svg",eR({viewBox:"0 0 25 24",xmlns:"http://www.w3.org/2000/svg"},e),b||(b=T.createElement("path",{d:"M20.792 12.5c.994 0 1.87.652 2.166 1.642l1.478 6.08a2.25 2.25 0 0 1-2.187 2.783H3.567a2.25 2.25 0 0 1-2.187-2.782l1.488-6.112A2.25 2.25 0 0 1 5.024 12.5h15.768zm0 1.5H5.025c-.332 0-.625.219-.71.501l-1.477 6.077a.75.75 0 0 0 .729.927h18.682a.75.75 0 0 0 .73-.927l-1.468-6.043a.75.75 0 0 0-.719-.535zm-4.134 1.5a2.25 2.25 0 1 1 0 4.5h-7.5a2.25 2.25 0 1 1 0-4.5h7.5zm0 1.5h-7.5a.75.75 0 1 0 0 1.5h7.5a.75.75 0 1 0 0-1.5zM15.265 1.918a4.5 4.5 0 0 1 2.09 3.15 4.498 4.498 0 0 1 5.212 5.333.75.75 0 1 1-1.47-.302 3.001 3.001 0 0 0-4.15-3.35l-.035.015a.746.746 0 0 1-.041.014l.076-.029a.754.754 0 0 1-.339.063c-.008 0-.017 0-.025-.002a.75.75 0 0 1-.07-.009l.07.01a.756.756 0 0 1-.543-.305.844.844 0 0 1-.08-.135l-.001-.006-.007-.016a.746.746 0 0 1-.025-.068l.032.084a.754.754 0 0 1-.063-.339c0-.008 0-.017.002-.025a3 3 0 1 0-5.98 0l.003.042v.045l-.003-.087a.755.755 0 0 1-.054.348l-.007.016a.744.744 0 0 1-.038.075l.038-.075a.756.756 0 0 1-.177.25l-.018.015a.713.713 0 0 1-.27.15.861.861 0 0 1-.149.03h-.01l-.025.002a.746.746 0 0 1-.063 0l.088-.002a.754.754 0 0 1-.364-.06 3.001 3.001 0 0 0-4.15 3.35.75.75 0 1 1-1.47.3 4.501 4.501 0 0 1 5.212-5.334 4.5 4.5 0 0 1 6.804-3.149z",fill:"#3C9700",fillRule:"evenodd"})))},eS=function(e){return(0,j.jsx)(eH,(0,w.Cl)({viewBox:"0 0 24 24",role:"img",fill:"currentColor"},e))},eM=r(11230),eA=r.n(eM),eB={toggle:"Content-module_toggle__Qt9v8",toggleInline:"Content-module_toggleInline__znhOv",additionalContent:"Content-module_additionalContent__iSwjL",descriptionContainer:"Content-module_descriptionContainer__eQ-oT",descriptionContainerExpanded:"Content-module_descriptionContainerExpanded__DQcZO"},eE=function(e){var t,r,n=e.description,a=e.children,o=(0,w.zs)((0,T.useState)(!1),2),i=o[0],c=o[1],s=(0,K.Bd)().t;return(0,j.jsxs)("div",(0,w.Cl)({className:eB.body,"data-cy":"card-content"},{children:[(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{dangerouslySetInnerHTML:{__html:n},"data-cy":"card-content-description",className:eA()(((t={})[eB.descriptionContainer]=!i&&n.length>200,t[eB.descriptionContainerExpanded]=i,t))}),n.length>200&&(0,j.jsx)("button",(0,w.Cl)({className:eA()(((r={})[eB.toggleInline]=!i,r[eB.toggle]=i,r)),onClick:function(e){e.stopPropagation(),c(!i)}},{children:s(i?"optionCard/close":"optionCard/showMore")}))]}),a&&(0,j.jsx)("div",(0,w.Cl)({className:eB.additionalContent,"data-cy":"card-products"},{children:a}))]}))},ez={wrapper:"Header-module_wrapper__etX8E",title:"Header-module_title__mKm4d"},eL=function(e){var t=e.title,r=e.children;return(0,j.jsxs)("header",(0,w.Cl)({className:ez.wrapper,"data-cy":"card-header"},{children:[r,(0,j.jsx)("h1",(0,w.Cl)({className:ez.title,"data-cy":"info-result-page-card-title"},{children:t}))]}))},ek={badge:"Badge-module_badge__ZbEBU"},eU=function(e){var t=e.text;return t?(0,j.jsx)("span",(0,w.Cl)({className:ek.badge,"data-cy":"badge"},{children:t})):null},eD={wrapper:"Rating-module_wrapper__Lxzo-",star:"Rating-module_star__Lv3Z1",full:"Rating-module_full__IaQg1",empty:"Rating-module_empty__0aMun",reviewCount:"Rating-module_reviewCount__3---Q"},eW=function(e){var t=e.rating,r=e.reviews;return(0,j.jsxs)("div",(0,w.Cl)({className:eD.wrapper,"data-cy":"prod-rating"},{children:[(0,j.jsx)(Q.QcK,{viewBox:"2 2 20 20",className:"".concat(eD.star," ").concat(t&&t>=.5?eD.full:eD.empty)}),(0,j.jsx)(Q.QcK,{viewBox:"2 2 20 20",className:"".concat(eD.star," ").concat(t&&t>=1.5?eD.full:eD.empty)}),(0,j.jsx)(Q.QcK,{viewBox:"2 2 20 20",className:"".concat(eD.star," ").concat(t&&t>=2.5?eD.full:eD.empty)}),(0,j.jsx)(Q.QcK,{viewBox:"2 2 20 20",className:"".concat(eD.star," ").concat(t&&t>=3.5?eD.full:eD.empty)}),(0,j.jsx)(Q.QcK,{viewBox:"2 2 20 20",className:"".concat(eD.star," ").concat(t&&t>=4.5?eD.full:eD.empty)}),(0,j.jsxs)("span",(0,w.Cl)({className:eD.reviewCount},{children:["(",r||0,")"]}))]}))},eO={wrapper:"AlternateResultCard-module_wrapper__GAU6R",title:"AlternateResultCard-module_title__3-mmP",pic:"AlternateResultCard-module_pic__dXRIH"},eF=function(e,t,r,n,a){return function(o){o.preventDefault(),(0,P.uv)(P.y1.ProductSuggestionClicked,e,n,r,a),window.location.href=t}},eZ=function(e){var t=e.shopIdentifier,r=e.picture,n=e.productReviewAverage,a=e.productReviewCount,o=e.name,i=e.path,c=e.tags,s=e.index,l=e.resultPageType,d=e.productSectionName,u=e.badgeText,p=(0,X.U)(),f=p.brand,m=p.country,h=p.petType;return(0,j.jsxs)("a",(0,w.Cl)({href:i,onClick:eF("".concat(f,"_").concat(h,"_").concat(m),i,c,t,"".concat(l,"_").concat(d,"_").concat(s+1)),className:eO.wrapper},{children:[(0,j.jsx)("img",{className:eO.pic,src:r,alt:"",width:"180",height:"180",loading:"lazy","data-cy":"alternative-prod-img"}),u&&(0,j.jsx)(eU,{text:u}),(0,j.jsx)("p",(0,w.Cl)({className:eO.title,"data-cy":"alternative-prod-title"},{children:o})),(0,j.jsx)(eW,{rating:n,reviews:a})]}))},eq={container:"AlternateResultCardList-module_container__5H-bM",wrapper:"AlternateResultCardList-module_wrapper__psJN3",slider:"AlternateResultCardList-module_slider__MxyPU",navNext:"AlternateResultCardList-module_navNext__xp-UQ",navPrev:"AlternateResultCardList-module_navPrev__zhfmd"},eX=function(e){var t=e.items,r=e.tags,n=e.resultPageType,a=e.productSectionName,o=(0,K.Bd)().t,i=(0,w.zs)((0,T.useState)(!1),2),c=i[0],s=i[1],l=(0,w.zs)((0,T.useState)(!1),2),d=l[0],u=l[1],p=(0,w.zs)((0,T.useState)(!1),2),f=p[0],m=p[1],h=(0,T.useRef)(null),g=(0,T.useRef)(null);(0,T.useEffect)(function(){h.current&&g.current&&h.current.scrollWidth>g.current.clientWidth&&(s(!0),u(!0))},[]);var _=function(e){if(void 0===e&&(e="next"),h.current&&g.current){var t,r=h.current.scrollWidth||0,n=g.current.clientWidth||0;if(!(n>r)){var a=16+(h.current.children[0].clientWidth||0),o=Math.floor((n-16)/a),i=null==(t=g.current)?void 0:t.scrollLeft,c=i%a,s=0;"next"===e?s=i-c+a*o:"previous"===e&&(s=i-c-a*(o-(c>0))),m(s>0),u(r-s>o*a+24),g.current.scrollTo({left:s,top:0,behavior:"smooth"})}}};return 0!==t.length?(0,j.jsxs)("div",(0,w.Cl)({className:eq.container,"data-cy":a},{children:[(0,j.jsx)("div",(0,w.Cl)({className:eq.wrapper,ref:g},{children:(0,j.jsx)("div",(0,w.Cl)({className:eq.slider,ref:h,"data-testid":"alternateResultProds"},{children:t.filter(function(e){return"Not Available"!==e.status}).map(function(e,t){return e.productId?(0,j.jsx)(eZ,{shopIdentifier:e.productId,picture:e.image,productReviewAverage:e.rating,productReviewCount:e.reviewCount,name:e.productName,path:e.link,tags:r,index:t,resultPageType:n,productSectionName:a},"".concat(e.productId,"-").concat(t)):(0,j.jsx)(eZ,{shopIdentifier:e.shopIdentifier,picture:e.picture,productReviewAverage:e.productReviewAverage,productReviewCount:e.productReviewCount,name:e.name,path:e.path,tags:r,index:t,resultPageType:n,productSectionName:a,badgeText:e.badgeText},"".concat(e.shopIdentifier,"-").concat(t))})}))})),c&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)("button",(0,w.Cl)({className:eq.navPrev,onClick:function(){return _("previous")},disabled:!f},{children:[(0,j.jsx)(Q.vs3,{}),(0,j.jsx)("span",{children:o("sliderNav/previous")})]})),(0,j.jsxs)("button",(0,w.Cl)({className:eq.navNext,onClick:function(){return _()},disabled:!d},{children:[(0,j.jsx)(Q.IvL,{}),(0,j.jsx)("span",{children:o("sliderNav/next")})]}))]})]})):null},eQ={staticCard:"Card-module_staticCard__T3e5O",actionCard:"Card-module_actionCard__6K4w5",card:"Card-module_card__LzN-3"},eG=function(e){var t=e.actionCard,r=e.children,n=(0,w.Tt)(e,["actionCard","children"]);return(0,j.jsx)("div",(0,w.Cl)({className:"".concat(eQ[t?"actionCard":"staticCard"]," ").concat(eQ.card),"data-cy":"carousel-card"},n,{children:r}))},eK={svgIcon:"CarouselResultCard-module_svgIcon__cCEm-"},eV=function(e){var t=e.description;e.descriptionExtension;var r=e.icon,n=e.items,a=e.title,o=e.tags,i=e.resultPageType,c=e.productSectionName;return(0,j.jsxs)(eG,{children:[(0,j.jsx)(eL,(0,w.Cl)({title:a},{children:(0,j.jsx)("span",(0,w.Cl)({className:eK.svgIcon},{children:r}))})),(0,j.jsx)(eE,(0,w.Cl)({description:t},{children:(0,j.jsx)(eX,{items:n,tags:o,resultPageType:i,productSectionName:c})}))]})},eJ={relatedProductsInfoWrap:"CarouselProductResultPage-module_relatedProductsInfoWrap__RwaY2",relatedProductsInfoTitle:"CarouselProductResultPage-module_relatedProductsInfoTitle__68Fvh",relatedProductsInfoBody:"CarouselProductResultPage-module_relatedProductsInfoBody__SIG2G",alernateProductsSubHeading:"CarouselProductResultPage-module_alernateProductsSubHeading__HOJxF",loadingText:"CarouselProductResultPage-module_loadingText__A-AuO",heading:"CarouselProductResultPage-module_heading__-fRja"},eY=function(e){var t=e.foodProducts,r=e.activityProducts,n=e.title,a=e.activityTitle,o=e.activityDescription,i=e.activityDescriptionExtension,c=e.foodTitle,s=e.foodDescription,l=e.foodDescriptionExtension,d=e.tags,u=P.Bx.CarouselProductResultPage;return(0,j.jsxs)("div",(0,w.Cl)({className:eJ.wrapper,"data-cy":"carousel-products-result-page"},{children:[(0,j.jsx)("h1",(0,w.Cl)({className:eJ.heading,"data-tesid":"
1carousel-header"},{children:n})),(0,j.jsx)(eV,{description:s,descriptionExtension:l,icon:(0,j.jsx)(eS,{}),items:t,title:c,tags:d,resultPageType:u,productSectionName:P.qO.FoodProducts}),(0,j.jsx)(eV,{description:o,descriptionExtension:i,icon:(0,j.jsx)(Q.Q3Q,{}),items:r,title:a,tags:d,resultPageType:u,productSectionName:P.qO.ActivityProducts})]}))},e$=r(32958),e0=r(92237),e1={whiteContainer:"LoadingAnimation-module_whiteContainer__BIPa3"},e2=function(){var e=(0,K.Bd)().t,t=(0,e0.u)();return(0,j.jsxs)("div",(0,w.Cl)({className:e1.whiteContainer},{children:[(0,j.jsx)("img",{src:(0,e$.V)({imagePath:"load.gif",errorHandler:t,imgType:"system"}),alt:"loading..."}),(0,j.jsx)("h2",{children:e("resultPage/fakeThinkingTitle")}),(0,j.jsx)("p",{children:e("resultPage/fakeThinkingSubtitle")})]}))},e5={productNotFoundText:"ProductNotFound-module_productNotFoundText__ixfKM",whiteContainer:"ProductNotFound-module_whiteContainer__aOoUN"},e4=function(e){var t=e.mainProductId,r=e.productData,n=e.tags,a=(0,X.U)(),o=a.brand,i=a.petType,c=a.country,s=(0,K.Bd)().t,l="".concat(o,"_").concat(i,"_").concat(c);return(0,P.uv)(P.y1.ProductNotFound,l,t,n,r),(0,j.jsxs)("span",(0,w.Cl)({className:e5.whiteContainer,"data-cy":"product-not-found-page"},{children:[(0,j.jsx)(ec,{}),(0,j.jsx)("p",(0,w.Cl)({className:e5.productNotFoundText},{children:s("resultPage/productNotFound")}))]}))},e3=function(){var e=(0,T.useRef)(!0);return(0,T.useEffect)(function(){return function(){e.current=!1}},[]),e},e8=function(e){var t=e.data,r=e.tags,n=(0,X.U)(),a=n.country,o=n.loadingAnimationDuration,i=(0,$.D)(),c=i.hoppsUrl,
1s=i.apiUrl,l=(0,e0.u)(),d=(0,w.zs)((0,T.useState)(!0),2),u=d[0],p=d[1],f=(0,w.zs)((0,T.useState)([]),2),m=f[0],h=f[1],g=(0,w.zs)((0,T.useState)([]),2),_=g[0],v=g[1],x=e3();return((0,T.useEffect)(function(){var e=(0,w.fX)((0,w.fX)([],(0,w.zs)(t.activityProductMetas),!1),(0,w.zs)(t.foodProductMetas),!1);e.length?(0,w.sH)(void 0,void 0,void 0,function(){var r,n,i,d,u;return(0,w.YH)(this,function(f){switch(f.label){case 0:return[4,eP(s,a)];case 1:n=(r=f.sent()).siteId,i=r.locale,f.label=2;case 2:return f.trys.push([2,4,,5]),[4,eg({hoppsUrl:c,siteId:n,locale:i,productMetaDatas:e,errorHandler:l})];case 3:return d=f.sent(),setTimeout(function(){x.current&&(v(eI(d,t.activityProductMetas)),h(eI(d,t.foodProductMetas)),p(!1))},o),[3,5];case 4:return u=f.sent(),l.captureException(u),p(!1),[3,5];case 5:return[2]}})}):p(!1)},[c,a,o,x,l]),u)?(0,j.jsx)(e2,{}):m.length&&_.length?(0,j.jsx)(eY,{foodProducts:m,activityProducts:_,title:t.title,activityTitle:t.activityTitle,activityDescription:t.activityDescription,activityDescriptionExtension:t.activityDescriptionExtension,foodTitle:t.foodTitle,foodDescription:t.foodDescription,foodDescriptionExtension:t.foodDescriptionExtension,tags:r}):(0,j.jsx)(e4,{})},e7={img:"PromoCard-module_img__DNGL7"},e6=r(15928),e9=r(47768),te=function(e){var t=e.title,r=e.children,n=e.description,a=e.image,o=e.imageHeight,i=e.imageWidth,c=e.buttonText,s=e.buttonUrl,l=e.secondaryButtonText,d=e.secondaryButtonUrl,u=e.tags,p=(0,X.U)(),f=p.brand,m=p.petType,h=p.country,g=(0,e0.u)(),_={},v=function(e,t,r,n){return function(a){a.preventDefault(),(0,P.uv)(e,t,void 0,n),window.matchMedia("(min-width: 1024px)").matches?window.open(r,"_blank"):window.open(r,"_self")}};return i&&o&&(_.width=i,_.height=o),(0,j.jsxs)(eG,{children:[(0,j.jsx)(eL,(0,w.Cl)({title:t},{children:r})),(0,j.jsxs)(eE,(0,w.Cl)({description:n},{children:[s&&c&&(0,j.jsx)("a",(0,w.Cl)({href:s,target:"_blank",rel:"noreferrer","data-cy":"primaryBtn",onClick:v(P.y1.InternalLinkClicked,"".concat(f,"_").concat(m,"_").concat(h),s,u)},{children:(0,j.jsx)(e6.j,(0,w.Cl)({length:"full"},{children:c}))})),a&&(0,j.jsx)("img",(0,w.Cl)({src:(0,e$.V)({imagePath:a,errorHandler:g,imgType:"content"}),alt:""},_,{className:e7.img})),d&&l&&(0,j.jsx)("a",(0,w.Cl)({href:d,target:"_blank",rel:"noreferrer","data-cy":"secondaryBtn",onClick:v(P.y1.ExternalLinkClicked,"".concat(f,"_").concat(m,"_").concat(h),d,u)},{children:(0,j.jsx)(e9.t,{children:l})}))]}))]})},tt={infoTextWrap:"InfoResultPage-module_infoTextWrap__-mfOt",infoTextHeading:"InfoResultPage-module_infoTextHeading__48lVS",infoText:"InfoResultPage-module_infoText__NQMlo",heading:"InfoResultPage-module_heading__6OnDS",svgIcon:"InfoResultPage-module_svgIcon__LX4Aw"},tr=function(e){var t=e.data,r=e.tags,n=t.title,a=t.cardTitle,o=t.description,i=t.buttonText,c=t.buttonURL,s=t.secondaryButtonText,l=t.secondaryButtonURL,d=t.image,u=t.infoText,p=t.infoTextHeading;return(0,j.jsxs)("div",{children:[(0,j.jsx)("h1",(0,w.Cl)({className:tt.heading,"data-cy":"info-result-page"},{children:n})),(0,j.jsx)(te,(0,w.Cl)({title:a,description:o,image:d,buttonText:i,buttonUrl:c,secondaryButtonText:s,secondaryButtonUrl:l,tags:r},{children:(0,j.jsx)(Q.$Kf,{className:tt.svgIcon})})),u&&(0,j.jsxs)("div",(0,w.Cl)({className:tt.infoTextWrap},{children:[p&&(0,j.jsx)("h3",{className:tt.infoTextHeading,dangerouslySetInnerHTML:{__html:p}}),(0,j.jsx)("p",{className:tt.infoText,dangerouslySetInnerHTML:{__html:u}})]}))]})};function tn(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){let t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function ta(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="none")}let to={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function ti(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter(e=>e).join(" ")}let tc=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"],ts=T.forwardRef((e,t)=>
1{let{animateOpacity:r=!1,animationStateClasses:n={},applyInlineTransitions:a=!0,children:o,className:i="",contentClassName:c,delay:s=0,duration:l=500,easing:d="ease",height:u,onHeightAnimationEnd:p,onHeightAnimationStart:f,style:m,contentRef:h}=e,g=Object.assign({},e);tc.forEach(e=>{delete g[e]});let _=(0,T.useRef)(u),v=(0,T.useRef)(null),x=(0,T.useRef)(),C=(0,T.useRef)(),y=(0,T.useRef)(Object.assign(Object.assign({},to),n)),b="undefined"!=typeof window,j=(0,T.useRef)(!!b&&!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion)").matches),P=j.current?0:s,w=j.current?0:l,I=u,N="visible";"number"==typeof u?(I=u<0?0:u,N="hidden"):tn(I)&&(I="0%"===u?0:u,N="hidden");let[R,H]=(0,T.useState)(I),[S,M]=(0,T.useState)(N),[A,B]=(0,T.useState)(!1),[E,z]=(0,T.useState)(ti(y.current,u));(0,T.useEffect)(()=>{ta(v.current,R)},[]),(0,T.useEffect)(()=>{if(u!==_.current&&v.current){let e,t;!function(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="")}(v.current,_.current),v.current.style.overflow="hidden";let r=v.current.offsetHeight;v.current.style.overflow="";let n=w+P,a="hidden",o="auto"===_.current;"number"==typeof u?t=e=u<0?0:u:tn(u)?t=e="0%"===u?0:u:(e=r,t="auto",a=void 0),o&&(t=e,e=r);let i=[y.current.animating,("auto"===_.current||u<_.current)&&y.current.animatingUp,("auto"===u||u>_.current)&&y.current.animatingDown,0===t&&y.current.animatingToHeightZero,"auto"===t&&y.current.animatingToHeightAuto,"number"==typeof t&&t>0?y.current.animatingToHeightSpecific:null].filter(e=>e).join(" "),c=ti(y.current,t);H(e),M("hidden"),B(!o),z(i),clearTimeout(C.current),clearTimeout(x.current),o?(C.current=setTimeout(()=>{H(t),M(a),B(!0),null==f||f(t)},50),x.current=setTimeout(()=>{B(!1),z(c),ta(v.current,t),null==p||p(t)},n)):(null==f||f(e),C.current=setTimeout(()=>{H(t),M(a),B(!1),z(c),"auto"!==u&&ta(v.current,e),null==p||p(e)},n))}return _.current=u,()=>{clearTimeout(C.current),clearTimeout(x.current)}},[u]);let L=Object.assign(Object.assign({},m),{height:R,overflow:S||(null==m?void 0:m.overflow)});A&&a&&(L.transition=`height ${w}ms ${d} ${P}ms`,(null==m?void 0:m.transition)&&(L.transition=`${m.transition}, ${L.transition}`),L.WebkitTransition=L.transition);let k={};r&&(k.transition=`opacity ${w}ms ${d} ${P}ms`,k.WebkitTransition=k.transition,0===R&&(k.opacity=0));let U=void 0!==g["aria-hidden"]?g["aria-hidden"]:0===u;return T.createElement("div",Object.assign({},g,{"aria-hidden":U,className:`${E} ${i}`,style:L,ref:t}),T.createElement("div",{className:c,style:k,ref:e=>{v.current=e,h&&(h.current=e)}},o))});var tl={complementaryProds:"CrossSellingProducts-module_complementaryProds__TGaUX",complementaryProdsBoxes:"CrossSellingProducts-module_complementaryProdsBoxes__Ac3q-",boxTitle:"CrossSellingProducts-module_boxTitle__GHP39",section:"CrossSellingProducts-module_section__MumvW",containerRow:"CrossSellingProducts-module_containerRow__73nrp",crossSellProdBoxHalfWidth:"CrossSellingProducts-module_crossSellProdBoxHalfWidth__NAOTs",crossSellProdTitle:"CrossSellingProducts-module_crossSellProdTitle__ZrIVA",pointer:"CrossSellingProducts-module_pointer__NgCLF",pic:"CrossSellingProducts-module_pic__XKPUT",productTitle:"CrossSellingProducts-module_productTitle__7EgGv",svgIcon:"CrossSellingProducts-module_svgIcon__jAfB7",svgIconArrowRight:"CrossSellingProducts-module_svgIconArrowRight__rOIeE"},td=function(e){var t=e.crossSellProducts,r=e.resultPageType,n=e.containerIndex,a=(0,X.U)(),o=a.brand,i=a.country,c=a.petType,s=(0,K.Bd)().t;return t&&t.some(function(e){return"Not Available"!==e.status})?(0,j.jsxs)("div",(0,w.Cl)({className:tl.complementaryProds},{children:[(0,j.jsx)("p",(0,w.Cl)({className:tl.boxTitle},{children:s("resultPage/CompleteYourMealWith")})),(0,j.jsx)("div",(0,w.Cl)({className:"".concat(tl.section," ").concat(tl.complementaryProdsBoxes)},{children:t.filter(function(e){return"Not Available"!==e.status}).map(function(e,t){return(0,j.jsxs)("a",(0,w.Cl)({className:"".concat(tl.containerRow," ").concat(tl.crossSellProdBoxHalfWidth," ").concat(tl.pointer),href:e.path,onClick:eF("".concat(o,"_").concat(c,"_").concat(i),e.path,e.tags,e.shopIdentifier,"".concat(r,"_crossSellProducts").concat(n+1,"_").concat(t+1))},{children:[(0,j.jsx)("img",{className:tl.pic,src:e.picture,alt:e.name,width:"180",height:"180",loading:"lazy"}),(0,j.jsx)("div",(0,w.Cl)({className:tl.crossSellProdTitle},{children:(0,j.jsx)("p",(0,w.Cl)({className:tl.productTitle},{children:e.name}))})),(0,j.jsx)(Q.$Hc,{className:"".concat(tl.svgIcon," ").concat(tl.svgIconArrowRight)})]}),"".concat(e.shopIdentifier,"-").concat(t))})}))]})):null},tu={container:"HorizontalResultCard-module_container__TmET1",containerRow:"HorizontalResultCard-module_containerRow__BDdtg",headerContainer:"HorizontalResultCard-module_headerContainer__NdmyT",section:"HorizontalResultCard-module_section__5eik5",flexGrow1:"HorizontalResultCard-module_flexGrow1__32-F1",header:"HorizontalResultCard-module_header__oiDdc",characteristics:"HorizontalResultCard-module_characteristics__kHYZZ",characteristicsList:"HorizontalResultCard-module_characteristicsList__x1ro8",coreFeatures:"HorizontalResultCard-module_coreFeatures__bnBjq",listItem:"HorizontalResultCard-module_listItem__ERbfC",listBullet:"HorizontalResultCard-module_listBullet__wpDqZ",boxHalfWidth:"HorizontalResultCard-module_boxHalfWidth__jjhya",boxTitle:"HorizontalResultCard-module_boxTitle__Q2tt6",pic:"HorizontalResultCard-module_pic__dUbEV",productTitle:"HorizontalResultCard-module_productTitle__LtQrv",title:"HorizontalResultCard-module_title__nZ1QR",shortDe
1scription:"HorizontalResultCard-module_shortDescription__CwZ-y",pointer:"HorizontalResultCard-module_pointer__AZwdf",svgIcon:"HorizontalResultCard-module_svgIcon__38Cvk",svgIconArrowUp:"HorizontalResultCard-module_svgIconArrowUp__r3c-e",btn:"HorizontalResultCard-module_btn__Gliuw",button:"HorizontalResultCard-module_button__AvXZ7",coreFeaturesItems:"HorizontalResultCard-module_coreFeaturesItems__-Bld8",alert:"HorizontalResultCard-module_alert__vDGVU",anchorLink:"HorizontalResultCard-module_anchorLink__5Xrgu",anchorContainer:"HorizontalResultCard-module_anchorContainer__cZ8lj",svgIconArrowRight:"HorizontalResultCard-module_svgIconArrowRight__7i1ag"},tp=function(e){var t,r,n=e.shopIdentifier;e.variantId,e.articleId;var a=e.picture,o=e.productReviewAverage,i=e.productReviewCount,c=e.name,s=e.shortDescription,l=e.longDescription,d=e.path,u=e.tags,p=e.howItHelps,f=e.coreFeatures,m=e.crossSellProducts;e.price,e.priceBeforeLabel,e.priceNowLabel,e.pricePerUnitLabel,e.packageSize;var h=e.status,g=e.index,_=e.isOpen,v=e.setExpandedItemIndex,x=e.resultPageType,C=e.badgeText,y=(0,X.U)(),b=y.brand,P=y.country,I=y.petType,N=(0,T.useRef)(null),R=(0,K.Bd)().t;return p&&f?r="fullContent":l&&(r="longDescriptionOnly"),(0,j.jsxs)("div",(0,w.Cl)({className:tu.container,id:"".concat(n),ref:N,"data-cy":"horizontal-result-card"},{children:[(0,j.jsxs)("div",(0,w.Cl)({className:"".concat(tu.header," ").concat(tu.containerRow),"aria-expanded":!1!==_,"aria-controls":"example-panel",onClick:function(){return v(_?void 0:g)}},{children:[(0,j.jsx)("div",{children:(0,j.jsx)("img",{"data-cy":"image",className:tu.pic,src:a,alt:c,width:"180",height:"180",loading:"lazy"})}),(0,j.jsxs)("div",(0,w.Cl)({className:tu.flexGrow1},{children:[(0,j.jsxs)("div",(0,w.Cl)({className:tu.headerContainer},{children:[C&&(0,j.jsx)(eU,{text:C}),(0,j.jsx)("p",(0,w.Cl)({className:tu.productTitle,"data-cy":"title"},{children:c}))]})),(0,j.jsx)(Q.cqb,{className:eA()(tu.svgIcon,((t={})[tu.svgIconArrowUp]=_,t)),"data-cy":"angle-down"}),(0,j.jsx)(eW,{rating:o,reviews:i}),(0,j.jsx)("p",(0,w.Cl)({className:tu.shortDescription},{children:s}))]}))]})),(0,j.jsx)(ts,(0,w.Cl)({duration:250,height:_?"auto":0,onAnimationEnd:function(){var e;_&&(null==(e=null==N?void 0:N.current)||e.scrollIntoView({behavior:"smooth"}))},animateOpacity:!0},{children:(0,j.jsxs)("div",{children:["longDescriptionOnly"===r&&(0,j.jsx)("p",(0,w.Cl)({"data-cy":"description"},{children:l})),"fullContent"===r&&(0,j.jsxs)("div",(0,w.Cl)({className:"".concat(tu.characteristics," ").concat(tu.section)},{children:[(0,j.jsxs)("div",(0,w.Cl)({className:tu.boxHalfWidth},{children:[(0,j.jsx)("p",(0,w.Cl)({className:tu.boxTitle},{children:R("resultPage/howItHelpsTitle")})),(0,j.jsx)("ul",(0,w.Cl)({className:tu.characteristicsList},{children:null==p?void 0:p.map(function(e,t){return(0,j.jsx)("li",{children:e},t)})}))]})),(0,j.jsxs)("div",(0,w.Cl)({className:tu.boxHalfWidth},{children:[(0,j.jsx)("p",(0,w.Cl)({className:tu.boxTitle},{children:R("resultPage/coreFeatures")})),(0,j.jsx)("div",(0,w.Cl)({className:tu.characteristicsList},{children:(0,j.jsx)("ul",(0,w.Cl)({className:tu.coreFeatures},{children:null==f?void 0:f.map(function(e,t){return(0,j.jsxs)("li",(0,w.Cl)({className:"".concat(tu.listItem," ").concat(tu.coreFeaturesItems)},{children:[(0,j.jsx)(Q.Img,{className:tu.listBullet}),(0,j.jsx)("div",(0,w.Cl)({className:tu.listItemText},{children:e}))]}),t)})}))}))]}))]})),"Not Available"!==h&&(0,j.jsx)("a",(0,w.Cl)({href:d,onClick:eF("".concat(b,"_").concat(I,"_").concat(P),d,u,n,"".concat(x,"_mainProduct_").concat(g+1)),"data-cy":"button"},{children:(0,j.jsx)(e6.j,(0,w.Cl)({length:"full",className:tu.btn,"data-cy":"main-prod-btn"},{children:R("mainResultCard/seeProductDetails")}))})),m&&(0,j.jsx)(td,{crossSellProducts:m,resultPageType:x,containerIndex:g})]})}))]}))},tf=function(e){var t=e.products,r=e.tags,n=(0,w.zs)((0,T.useState)(),2),a=n[0],o=n[1];return(0,T.useEffect)(function(){1===t.length&&o(0)},[t.length]),t.length?(0,j.jsx)("div",{children:t.map(function(e,t){return e.name&&(0,j.jsx)(tp,{badgeText:e.badgeText,shopIdentifier:e.shopIdentifier,variantId:e.variantId,articleId:e.articleId,picture:e.picture,productReviewAverage:e.productReviewAverage,productReviewCount:e.productReviewCount,name:e.name,longDescription:e.summary,path:e.path,crossSellProducts:e.crossSellProducts,status:e.status,tags:r,index:t,isOpen:a===t,setExpandedItemIndex:o,resultPageType:P.Bx.MultipleProductResultPage,price:e.price,priceNowLabel:e.priceNowLabel,pricePerUnitLabel:e.pricePerUnitLabel,priceBeforeLabel:e.priceBeforeLabel,packageSize:e.packageSize},"".concat(e.shopIdentifier,"-").concat(t))})}):null},tm=function(e){var t=e.data,r=e.tags,n=(0,X.U)(),a=n.country,o=n.loadingAnimationDuration,i=(0,$.D)(),c=i.hoppsUrl,
1s=i.apiUrl,l=(0,e0.u)(),d=(0,w.zs)((0,T.useState)(!0),2),u=d[0],p=d[1],f=(0,w.zs)((0,T.useState)([]),2),m=f[0],h=f[1],g=e3();return((0,T.useEffect)(function(){var e=(0,w.fX)((0,w.fX)([],(0,w.zs)(t.productMetas.map(function(e){return e.mainProductMeta})),!1),(0,w.zs)(t.productMetas.map(function(e){return e.complementaryProductMetas}).flat()),!1).flat();e.length?(0,w.sH)(void 0,void 0,void 0,function(){var r,n,i,d;return(0,w.YH)(this,function(u){switch(u.label){case 0:return[4,eP(s,a)];case 1:n=(r=u.sent()).siteId,i=r.locale,u.label=2;case 2:return u.trys.push([2,4,,5]),[4,eg({hoppsUrl:c,siteId:n,locale:i,productMetaDatas:e,errorHandler:l})];case 3:return d=u.sent(),setTimeout(function(){g.current&&(h(eN({rawProducts:d,productItemMetas:t.productMetas})),p(!1))},o),[3,5];case 4:return u.sent(),p(!1),[3,5];case 5:return[2]}})}):p(!1)},[c,a,o,l,g]),u)?(0,j.jsx)(e2,{}):0===m.length?(0,j.jsx)(e4,{}):(0,j.jsx)(tf,{products:m,tags:r})},th=function(e){var t=e.products,r=e.tags,n=(0,w.zs)((0,T.useState)(),2),a=n[0],o=n[1];return(0,T.useEffect)(function(){1===t.length&&o(0)},[t.length]),t.length?(0,j.jsx)("div",{children:t.map(function(e,t){return e.name&&(0,j.jsx)(tp,{badgeText:e.badgeText,shopIdentifier:e.shopIdentifier,variantId:e.variantId,articleId:e.articleId,picture:e.picture,productReviewAverage:e.productReviewAverage,productReviewCount:e.productReviewCount,name:e.name,shortDescription:e.description,path:e.path,howItHelps:e.howItHelps,coreFeatures:e.coreFeatures,crossSellProducts:e.crossSellProducts,status:e.status,tags:r,index:t,isOpen:a===t,setExpandedItemIndex:o,resultPageType:P.Bx.PdMultipleProductResultPage,price:e.price,priceNowLabel:e.priceNowLabel,pricePerUnitLabel:e.pricePerUnitLabel,priceBeforeLabel:e.priceBeforeLabel,packageSize:e.packageSize},"".concat(e.shopIdentifier,"-").concat(t))})}):null},tg=function(e){var t=e.data,r=e.tags,n=(0,X.U)(),a=n.country,o=n.loadingAnimationDuration,i=(0,$.D)(),c=i.hoppsUrl,
1s=i.apiUrl,l=(0,e0.u)(),d=(0,w.zs)((0,T.useState)(!0),2),u=d[0],p=d[1],f=(0,w.zs)((0,T.useState)([]),2),m=f[0],h=f[1],g=e3();return((0,T.useEffect)(function(){var e=(0,w.fX)((0,w.fX)([],(0,w.zs)(t.productMetas.map(function(e){return e.mainProductMeta})),!1),(0,w.zs)(t.productMetas.map(function(e){return e.complementaryProductMetas}).flat()),!1).flat();e.length?(0,w.sH)(void 0,void 0,void 0,function(){var r,n,i,d;return(0,w.YH)(this,function(u){switch(u.label){case 0:return[4,eP(s,a)];case 1:n=(r=u.sent()).siteId,i=r.locale,u.label=2;case 2:return u.trys.push([2,4,,5]),[4,eg({hoppsUrl:c,siteId:n,locale:i,productMetaDatas:e,errorHandler:l})];case 3:return d=u.sent(),setTimeout(function(){g.current&&(h(eN({rawProducts:d,productItemMetas:t.productMetas})),p(!1))},o),[3,5];case 4:return u.sent(),p(!1),[3,5];case 5:return[2]}})}):p(!1)},[c,a,o,l,g]),u)?(0,j.jsx)(e2,{}):0===m.length?(0,j.jsx)(e4,{}):(0,j.jsx)(th,{products:m,tags:r})},t_={wrapper:"MainResultCard-module_wrapper__-weQC",header:"MainResultCard-module_header__pkLE0",titleWrap:"MainResultCard-module_titleWrap__4WwF8",title:"MainResultCard-module_title__A2BQe",pic:"MainResultCard-module_pic__pL2Kf",description:"MainResultCard-module_description__Rssqd",btn:"MainResultCard-module_btn__Nv1Jf"},tv=function(e){var t=e.shopIdentifier,r=e.summary,n=e.path,a=e.picture,o=e.name,i=e.productReviewAverage,c=e.productReviewCount,s=e.status,l=e.badgeText,d=e.flavourSelect,u=e.tags,p=e.resultPageType,f=e.children,m=(0,X.U)(),h=m.brand,g=m.country,_=m.petType,v="".concat(h,"_").concat(_,"_").concat(g),x=(0,K.Bd)().t,C=(0,j.jsxs)("div",(0,w.Cl)({className:t_.header,"data-cy":"main-product"},{children:[(0,j.jsx)("img",{className:t_.pic,src:a,alt:"",width:"180",height:"180",loading:"lazy","data-cy":"main-result-card-img"}),(0,j.jsxs)("div",(0,w.Cl)({className:t_.titleWrap},{children:[l&&(0,j.jsx)(eU,{text:l}),(0,j.jsx)("p",(0,w.Cl)({className:t_.title,"data-cy":"main-prod-title"},{children:o})),(0,j.jsx)(eW,{rating:i,reviews:c})]}))]}));return(0,j.jsxs)("div",(0,w.Cl)({"data-cy-main-product-status":s,className:t_.wrapper},{children:["Not Available"===s?C:(0,j.jsx)("a",(0,w.Cl)({href:n,onClick:eF(v,n,u,t,"".concat(p,"_mainProduct_1"))},{children:C})),d,(0,j.jsx)("div",{className:t_.description,dangerouslySetInnerHTML:{__html:r||""},"data-cy":"main-prod-description"}),(0,j.jsx)("a",(0,w.Cl)({href:n,onClick:eF(v,n,u,t,"singleProductResultPage_mainProduct_1")},{children:(0,j.jsx)(e6.j,(0,w.Cl)({length:"full",className:t_.btn,"data-cy":"main-prod-btn"},{children:x("mainResultCard/seeProductDetails")}))})),f]}))},tx={wrapper:"ComplementaryResultCard-module_wrapper__IRxvT",header:"ComplementaryResultCard-module_header__Y6Guk",titleWrap:"ComplementaryResultCard-module_titleWrap__1qFkm",title:"ComplementaryResultCard-module_title__KwwNx",pic:"ComplementaryResultCard-module_pic__7NSHr",svgIcon:"ComplementaryResultCard-module_svgIcon__0fFnu"},tC=function(e){var t=e.shopIdentifier,r=e.picture,n=e.productReviewAverage,a=e.productReviewCount,o=e.name,i=e.badgeText,c=e.path,s=e.tags,l=e.index,d=e.resultPageType,u=(0,X.U)(),p=u.brand,f=u.country,m=u.petType;return(0,j.jsx)("div",(0,w.Cl)({className:tx.wrapper,"data-cy":"complementary-prod"},{children:(0,j.jsx)("a",(0,w.Cl)({href:c,onClick:eF("".concat(p,"_").concat(m,"_").concat(f),c,s,t,"".concat(d,"_complementaryProducts_").concat(l+1))},{children:(0,j.jsxs)("div",(0,w.Cl)({className:tx.header},{children:[(0,j.jsx)("img",{className:tx.pic,src:r,alt:"",width:"170",height:"170",loading:"lazy","data-cy":"complementary-prod-img"}),(0,j.jsxs)("div",(0,w.Cl)({className:tx.titleWrap},{children:[i&&(0,j.jsx)(eU,{text:i}),(0,j.jsx)("p",(0,w.Cl)({className:tx.title,"data-cy":"complementary-prod-title"},{children:o})),n&&(0,j.jsx)(eW,{rating:n,reviews:a})]})),(0,j.jsx)(Q.MFb,{className:tx.svgIcon})]}))}))}))},ty={complementary:"ComplementaryResultCardList-module_complementary__tdG6z",subheading:"ComplementaryResultCardList-module_subheading__w-G2q"},tb=function(e){var t=e.complementaryProducts,r=e.tags,n=e.resultPageType,a=(0,K.Bd)().t;return(0,j.jsxs)("div",(0,w.Cl)({"data-cy":"complementary-products"},{children:[(0,j.jsx)("div",(0,w.Cl)({className:ty.complementary,"data-cy":"complementary-products-text"},{children:(0,j.jsx)("p",(0,w.Cl)({className:ty.subheading},{children:a("mainResultCard/bestCombinedWith")}))})),t.map(function(e,t){return"Not Available"===e.status?null:(0,j.jsx)(tC,{shopI
1dentifier:e.shopIdentifier,picture:e.picture,productReviewAverage:e.productReviewAverage,name:e.name,productReviewCount:e.productReviewCount,path:e.path,tags:r,index:t,resultPageType:n,badgeText:e.badgeText},"".concat(e.shopIdentifier,"-").concat(t))})]}))},tj={selectWrapper:"ResultPageFlavourSelect-module_selectWrapper__J10Jp",select:"ResultPageFlavourSelect-module_select__R8c23"},tP=function(e){var t=e.otherFlavourProducts,r=e.value,n=e.onSelect;return t.length<=1?null:(0,j.jsx)("div",(0,w.Cl)({className:tj.selectWrapper},{children:(0,j.jsx)("select",(0,w.Cl)({value:r,className:tj.select,onChange:function(e){n(Number.parseInt(e.target.options[e.target.selectedIndex].value,10))}},{children:t.sort(function(e,t){return e.flavour&&t.flavour?e.flavour.toLowerCase().localeCompare(t.flavour.toLowerCase()):-1}).map(function(e,t){var r=e.shopIdentifier,n=e.flavour,a=e.name;return(0,j.jsx)("option",(0,w.Cl)({value:r},{children:n||a}),"".concat(r,"-").concat(t))})}))}))},tw={relatedProductsInfoWrap:"SingleProductResultPage-module_relatedProductsInfoWrap__5brK2",relatedProductsInfoTitle:"SingleProductResultPage-module_relatedProductsInfoTitle__DZlgL",relatedProductsInfoBody:"SingleProductResultPage-module_relatedProductsInfoBody__LWHq2",alernateProductsSubHeading:"SingleProductResultPage-module_alernateProductsSubHeading__nE9Dw",loadingText:"SingleProductResultPage-module_loadingText__D-ZAj"},tT=function(e){var t=e.matchingProduct,r=e.alternativeProducts,n=e.complementaryProducts,a=e.otherFlavourProducts,o=e.selectCurrentMatchingProduct,i=e.relatedProductsContentTitle,c=e.relatedProductsContentBody,s=e.tags,l=(0,X.U)().petType,d=(0,K.Bd)(),u=d.t,p=d.exists,f=P.Bx.SingleProductResultPage,m=n.some(function(e){return"Not Available"!==e.status}),h=r.some(function(e){return"Not Available"!==e.status});return(0,j.jsxs)("div",(0,w.Cl)({className:tw.wrapper,"data-cy":"single-product-result-page","data-cy-complementaryprodsshouldexist":m,"data-cy-alternativeprodsshouldexist":h},{children:[(0,j.jsx)(tv,(0,w.Cl)({shopIdentifier:t.shopIdentifier,variantId:t.variantId,articleId:t.articleId,summary:t.summary,picture:t.picture,productReviewAverage:t.productReviewAverage,name:t.name,productReviewCount:t.productReviewCount,path:t.path,status:t.status,badgeText:t.badgeText,tags:s,resultPageType:f,flavourSelect:(0,j.jsx)(tP,{value:t.shopIdentifier,onSelect:o,otherFlavourProducts:(0,w.fX)([t],(0,w.zs)(a),!1)}),price:t.price,priceBeforeLabel:t.priceBeforeLabel,priceNowLabel:t.priceNowLabel,pricePerUnitLabel:t.pricePerUnitLabel,packageSize:t.packageSize},{children:m&&(0,j.jsx)(tb,{complementaryProducts:n,tags:s,resultPageType:f})})),m&&i&&c&&(0,j.jsxs)("div",(0,w.Cl)({className:tw.relatedProductsInfoWrap},{children:[(0,j.jsx)("p",(0,w.Cl)({className:tw.relatedProductsInfoTitle},{children:p("relatedProductsContent.".concat(l,".").concat(i,".").concat("title"))?u("relatedProductsContent.".concat(l,".").concat(i,".").concat("title")):i})),(0,j.jsx)("div",(0,w.Cl)({className:tw.relatedProductsInfoBody},{children:p("relatedProductsContent.".concat(l,".").concat(c,".").concat("body"))?u("relatedProductsContent.".concat(l,".").concat(c,".").concat("body")):c}))]})),h&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("p",(0,w.Cl)({className:tw.alernateProductsSubHeading,"data-cy":"alternative-products-text"},{children:u("resultPage/alternativeProducts")})),(0,j.jsx)(eX,{items:r,tags:s,resultPageType:f,productSectionName:P.qO.AlternativeProducts})]})]}))},tI=function(e){var t,r=e.data,n=e.tags,a=(0,X.U)(),o=a.country,i=a.petType,c=a.brand,s=a.loadingAnimationDuration,l=a.setProductId,d=(0,$.D)(),u=d.hoppsUrl,p=d.zootopiaUrl,f=d.apiUrl,m=(0,e0.u)(),h=(0,w.zs)((0,T.useState)(null==(t=r.mainProductMeta)?void 0:t.id),2),g=h[0],_=h[1],v=(0,w.zs)((0,T.useState)(!0),2),x=v[0],C=v[1],y=(0,w.zs)((0,T.useState)([]),2),b=y[0],P=y[1],I=(0,w.zs)((0,T.useState)([]),2),N=I[0],R=I[1],H=(0,w.zs)((0,T.useState)([]),2),S=H[0],M=H[1],A=(0,w.zs)((0,T.useState)([]),2),B=A[0],E=A[1],z=e3();if((0,T.useEffect)(function(){var e;(null==(e=r.mainProductMeta)?void 0:e.id)?(0,w.sH)(void 0,void 0,void 0,function(){var e,t,n,a,l,d,h,g;return(0,w.YH)(this,function(_){switch(_.label){case 0:return e=(0,w.fX)((0,w.fX)((0,w.fX)([r.mainProductMeta],(0,w.zs)(r.complementaryProductMetas),!1),(0,w.zs)(r.alternativeProductMetas),!1),(0,w.zs)(r.otherFlavourProductMetas),!1),[4,eP(f,o)];case 1:n=(t=_.sent()).siteId,a=t.language,l=t.locale,_.label=2;case 2:return _.trys.push([2,5,,6]),[4,eg({hoppsUrl:u,siteId:n,locale:l,productMetaDatas:e,errorHandler:m})];case 3:return d=_.sent(),[4,eb({zootopiaUrl:p,siteId:n,language:a,c
1ountry:o,productIds:eT(e),brand:c,petType:i,errorHandler:m})];case 4:return h=_.sent(),setTimeout(function(){if(z.current){E(eI(d,e)),P(eI(d,r.complementaryProductMetas)),R(h.length?h:eI(d,r.alternativeProductMetas));var t=eI(d,r.otherFlavourProductMetas),n=B.find(function(e){var t;return e.shopIdentifier===(null==(t=r.mainProductMeta)?void 0:t.id)});n&&t.unshift(n),M(t),C(!1)}},s),[3,6];case 5:return g=_.sent(),m.captureException(g),C(!1),[3,6];case 6:return[2]}})}):C(!1)},[u,p,c,o,i,s,m,z]),x)return(0,j.jsx)(e2,{});var L=S.filter(function(e){return e.shopIdentifier!==g}),k=B.find(function(e){return e.shopIdentifier===g});return k?(l(k.shopIdentifier),(0,j.jsx)(tT,{selectCurrentMatchingProduct:function(e){_(e)},matchingProduct:k,alternativeProducts:N,complementaryProducts:b,otherFlavourProducts:L,relatedProductsContentBody:r.relatedProductsContentBody,relatedProductsContentTitle:r.relatedProductsContentTitle,tags:n})):(0,j.jsx)(e4,{mainProductId:g,productData:"singleProductResultPage_mainProduct_1",tags:n})},tN=function(e){var t=e.node,r=e.tags,n=(0,e0.u)();return W(t)?(0,j.jsx)(tI,{data:ed(t),tags:r}):O(t)?(0,j.jsx)(e8,{data:{activityProductMetas:ep(t["results/activityProductIds"]),foodProductMetas:ep(t["results/foodProductIds"]),title:t["results/relatedProductContent/title"],activityTitle:t["results/relatedProductContent/activityTitle"],activityDescription:t["results/relatedProductContent/activityDescription"],activityDescriptionExtension:t["results/relatedProductContent/activityDescriptionExtension"],foodTitle:t["results/relatedProductContent/foodTitle"],foodDescription:t["results/relatedProductContent/foodDescription"],foodDescriptionExtension:t["results/relatedProductContent/foodDescriptionExtension"]},tags:r}):F(t)?(0,j.jsx)(tr,{data:{title:t["results/relatedProductContent/title"],cardTitle:t["results/relatedProductContent/cardTitle"],description:t["results/relatedProductContent/description"],buttonText:t["results/relatedProductContent/buttonText"],buttonURL:t["results/relatedProductContent/buttonURL"],secondaryButtonText:t["results/relatedProductContent/secondaryButtonText"],secondaryButtonURL:t["results/relatedProductContent/secondaryButtonURL"],image:t["results/relatedProductContent/image"],infoText:t["results/relatedProductContent/infoText"],infoTextHeading:t["results/relatedProductContent/infoTextHeading"]},tags:r}):Z(t)?(0,j.jsx)(tm,{data:{productMetas:eu(t)},tags:r}):q(t)?(0,j.jsx)(tg,{data:{productMetas:eu(t),description:t["results/description"]},tags:r}):(n.captureException(Error("Unsupported result page type nodeId="+(null==t?void 0:t.nodeId))),null)},tR={wrapper:"InfoText-module_wrapper__WSZbW",wrapperAnimating:"InfoText-module_wrapperAnimating__--2JN",text:"InfoText-module_text__Y9VN3",heading:"InfoText-module_heading__tI--j"},tH=T.forwardRef(function(e,t){var r=e.infoText,n=e.infoTextHeading,a=(0,w.zs)((0,T.useState)(!1),2),o=a[0],i=a[1],c=(0,T.useRef)(null);return(0,T.useImperativeHandle)(t,function(){return{animateInfoText:function(){var e;i(!0),null==(e=c.current)||e.scrollIntoView({behavior:"smooth"}),setTimeout(function(){i(!1)},2e3)}}}),(0,j.jsxs)("div",(0,w.Cl)({ref:c,className:"".concat(tR.wrapper," ").concat(o?tR.wrapperAnimating:""),"data-cy":"info-text"},{children:[(0,j.jsx)("h3",(0,w.Cl)({className:tR.heading},{children:n})),(0,j.jsx)("p",{className:tR.text,dangerouslySetInnerHTML:{__html:r}})]}))}),tS={toggle:"ToggleButton-module_toggle__y1hic"},tM=function(e){var t=e.children,r=e.disableWhenExpanded,n=e.isExpanded,a=e.onClick;return(0,j.jsx)("button",(0,w.Cl)({className:tS.toggle,onClick:a,disabled:r&&n},{children:t}))},tA={wrapper:"OptionCard-module_wrapper__RFIEW",header:"OptionCard-module_header__3d806",pic:"OptionCard-module_pic__xSETj",headerWrap:"OptionCard-module_headerWrap__op3OX",headerText:"OptionCard-module_headerText__wy5ev",title:"OptionCard-module_title__GKQ4t",subtitle:"OptionCard-module_subtitle__2qS2X",svgIcon:"OptionCard-module_svgIcon__JGhn5",collapse:"OptionCard-module_collapse__6KjfI",description:"OptionCard-module_description__r1vh6"},tB=function(e){var t=e.option,r=e.hideImage,n=t.description,a=t.onClick,o=t.subtitle,i=t.title,c=t.image,s=(0,w.Tt)(t,["description","onClick","subtitle","title","image"]),l=(0,w.zs)((0,T.useState)(!1),2),d=l[0],u=l[1],p=(0,K.Bd)().t,f=(0,e0.u)(),m=function(e){e.stopPropagation(),u(!d)},h=s.nodeId.split("/").pop();return(0,j.jsxs)("div",(0,w.Cl)({className:tA.wrapper,"data-cy-answer":h},{children:[(0,j.jsxs)("div",(0,w.Cl)({className:tA.header,onClick:a},{children:[!r&&c&&(0,j.jsx)("img",{className:tA.pic,"data-cy":"option-img",src:(0,e$.V)({imagePath:c,errorHandler:f,imgType:"content"}),alt:"",width:"152",height:"152",loading:"lazy"}),(0,j.jsxs)("div",(0,w.Cl)({className:tA.headerWrap},{children:[(0,j.jsxs)("div",(0,w.Cl)({className:tA.headerText},{children:[(0,j.jsx)("p",(0,w.Cl)({className:tA.title,"data-cy":"answer-title"},{children:i})),o&&(0,j.jsx)("p",(0,w.Cl)({className:tA.subtitle},{children:o}))]})),n&&(0,j.jsx)(tM,(0,w.Cl)({disableWhenExpanded:!0,isExpanded:d,onClick:m},{children:p("optionCard/showMore")}))]})),(0,j.jsx)(Q.MFb,{className:tA.svgIcon})]})),n&&(0,j.jsxs)("div",(0,w.Cl)({className:tA.collapse,"data-expanded":d?"true":"false"},{children:[(0,j.jsx)("div",(0,w.Cl)({className:tA.description},{children:n})),(0,j.jsx)(tM,(0,w.Cl)({isExpanded:d,onClick:m},{children:p("optionCard/close")}))]}))]}))},tE={wrapper:"OptionCardList-module_wrapper__rbD0V"},tz=function(e){var t=e.options,r=e.optionListTitle,n=e.searchMode;return(0,j.jsxs)("div",(0,w.Cl)({className:tE.wrapper},{children:[r&&(0,j.jsx)("p",{children:r}),t.length&&t.map(function(e,t){return(0,j.jsx)(tB,{option:e,hideImage:n},"".concat(e.nodeId,"-").concat(t))}),!t.length&&(0,j.jsx)("div",{children:"Keine Ergebnisse gefunden"})]}))},tL={wrapper:"SearchInput-module_wrapper__0DaKr",searchInput:"SearchInput-module_searchInput__v28H1",searchIcon:"SearchInput-module_searchIcon__AubJm"},tk=function(e){var t=e.search,r=e.handleOnSearchInput,n=(0,K.Bd)().t;return(0,j.jsxs)("div",(0,w.Cl)({className:tL.wrapper},{children:[(0,j.jsx)("input",{className:tL.searchInput,type:"search",placeholder:n("searchInput/search"),autoComplete:"off",value:t,onInput:r}),(0,j.jsx)(Q.Nor,{className:tL.searchIcon})]}))},tU=function(e){var t=e.options,r=e.optionListTitle,n=(0,w.zs)((0,T.useState)(""),2),a=n[0],o=n[1];return(0,j.jsxs)("div",{children:[(0,j.jsx)(tk,{search:a,handleOnSearchInput:function(e){o(e.currentTarget.value)}}),(0,j.jsx)(tz,{searchMode:""!==a,optionListTitle:""===a?r:"Ergibnisse",options:a?t.filter(function(e){return e.title.toLowerCase().includes(a.toLowerCase())||e.alwaysVisible}):t.filter(function(e){return!e.searchOnly})})]})},tD=T.forwardRef(function(e,t){var r,n=e.node,a=n.infoText,o=n.infoTextHeading,i=n.optionListTitle,c=(0,X.U)().setPath,s=null==(r=n.children)?void 0:r.map(function(e){var t=U(e);return{nodeId:e.nodeId,title:e.title,subtitle:t?e.subtitle:void 0,description:t?e.description:void 0,searchOnly:t?e.searchOnly:void 0,image:e.image,alwaysVisible:t&&e.alwaysVisible,onClick:function(){c(e.n
1odeId)}}});return(0,j.jsxs)("div",{children:[k(n)&&s&&(0,j.jsx)(tU,{options:s,optionListTitle:i}),L(n)&&s&&(0,j.jsx)(tz,{options:s,optionListTitle:i}),a&&(0,j.jsx)(tH,{ref:t,infoTextHeading:o,infoText:a})]})}),tW=T.forwardRef(function(e,t){var r=e.node,n=e.tags;if(D(r))return(0,j.jsx)(tN,{node:r,tags:n});if(U(r)&&void 0!==r.q)return(0,j.jsx)(tD,{node:r,ref:t});throw console.error("Unsupported node type",r),Error("Unsupported node type")}),tO=r(72859),tF=function(e){var t=e.setShowModal,r=(0,K.fx)().t;return(0,j.jsxs)(tO.FQ,(0,w.Cl)({isOpen:!0,closeBtnAriaLabel:"close-btn",heading:r("food.advisor.wrong.configs.modal.title"),headingId:"headingId",onClose:function(){t(!1)}},{children:[(0,j.jsx)(tO.cw,{children:r("food.advisor.wrong.configs.modal.description")}),(0,j.jsx)(tO.jl,{children:(0,j.jsx)(tO._8,(0,w.Cl)({onClick:function(){t(!1)}},{children:r("food.advisor.general.close")}))})]}))},tZ={btnContainer:"buttonToProductAdmin-module_btnContainer__hhtOJ",hoverText:"buttonToProductAdmin-module_hoverText__RmB3y",enabled:"buttonToProductAdmin-module_enabled__7mtIq",disabled:"buttonToProductAdmin-module_disabled__qpDE3",btnText:"buttonToProductAdmin-module_btnText__D2JK9"},tq=function(e){var t=e.currentNode,r=e.isResultPage,n=e.isInfoResultPage,a=(0,X.U)().country,o=(0,$.D)().backendUrl,i=t.nodeId.split("/"),c=function(e){for(var t="",r=1;r<e.length;r++)t="".concat(t).concat(1===r?"":"%20%E2%86%92%20").concat(e[r]);return t}(i),s=!n&&r,l="".concat(o,"/admin/products?filter=@").concat(a,"%20").concat(i[0],"%20").concat(c,"&order=6");return(0,j.jsx)("div",{children:(0,j.jsx)("a",(0,w.Cl)({className:"".concat(tZ.btnContainer," ").concat(s?tZ.enabled:tZ.disabled)},s?{href:l}:{},{target:"_blank",rel:"noreferrer"},{children:(0,j.jsxs)("p",(0,w.Cl)({className:tZ.btnText},{children:["Go To Product Admin",s?null:(0,j.jsx)("span",(0,w.Cl)({className:tZ.hoverText},{children:"This button is only enabled at product result pages!"}))]}))}))})},tX={backdrop:"Modal-module_backdrop__jYpTA",wrapper:"Modal-module_wrapper__65JHm",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9"},tQ=function(e){var t=e.children,r=e.currentNode,n=e.onClose,a=e.isOpen,o=e.renderHeader,i=(0,T.useRef)(null),c=(0,$.D)().isPreviewTool;return(0,T.useEffect)(function(){return i.current&&(i.current.scrollTop=0),document.body.style.overflow="hidden",function(){document.body.style.overflow="auto"}},[]),(0,j.jsxs)("div",(0,w.Cl)({className:tX.backdrop,"data-fa-modal-backdrop":a?"show":"hide",onClick:function(e){e.target.dataset&&e.target.dataset.faModalBackdrop&&n()}},{children:[r&&c?(0,j.jsx)(tq,{currentNode:r,isResultPage:D(r),isInfoResultPage:F(r)}):null,(0,j.jsxs)("div",(0,w.Cl)({className:tX.wrapper,"data-cy":"fa-modal"},{children:[(0,j.jsx)("div",(0,w.Cl)({className:tX.header},{children:null==o?void 0:o()})),(0,j.jsx)("div",(0,w.Cl)({ref:i,className:tX.body,"data-cy":"modal-body"},{children:t}))]}))]}))},tG=r(30442),tK=function(e,t){var r=U(e)&&e.children&&e.q,n=E(e),a=1===n.length?[]:n,o=a.filter(function(e){return!D(e)}).map(function(e,r){var n;return{title:(n=e.crumbLabel||e.qLabel||"").charAt(0).toUpperCase()+n.slice(1),onClick:r===a.length-1?void 0:function(){return t(e.nodeId)}}}),i=new Set(a.map(function(e){return e.nodeId.split("/").pop()||e.nodeId})),c=new Set(n.filter(function(e){return!!e.qTag}).map(function(e){return e.qTag}));return{isQuestionMode:r,nodeAndAncestors:n,breadcrumbs:o,breadcrumbNodes:a,tags:{qTags:(0,w.fX)([],(0,w.zs)(c),!1),aTags:(0,w.fX)([],(0,w.zs)(i),!1)}}},tV=function(){var e,t,r=(0,w.zs)((0,T.useState)(),2),n=r[0],a=r[1],o=(0,T.useRef)(null),i=(0,e0.u)(),c=(0,X.U)(),s=c.brand,l=c.country,d=c.petType,u=c.path,p=c.setPath,f=c.setShowModal,m=c.productId,h=(0,$.D)().apiUrl;e=[h,s,l,d,i,m,p],t=(0,T.useRef)(!0),(0,T.useEffect)(function(){return(function(){return A({apiUrl:h,brand:s,country:l,petType:d})})().then(function(e){if(t.current)return function(e){return(0,w.sH)(void 0,void 0,void 0,function(){var t;return(0,w.YH)(this,function(r){return e&&(a(e),p(((t=u||m&&e.entryPoints&&"".concat(s,"-").concat(d,"/").concat(e.entryPoints[m]))&&z(t,e.data)||e.data).nodeId)),[2]})})}(e)}),function(){t.current=!1}},e);var g=u&&n&&z(u,n.data);if(!g)return(null==n?void 0:n.generic)?(0,j.jsx)(K.qv,(0,w.Cl)({country:l},{children:(0,j.jsxs)(K.$5,(0,w.Cl)({value:n.generic},{children:[(0,j.jsx)(tF,{setShowModal:f}),";"]}))})):null;var _=tK(g,p),v=_.isQuestionMode,x=_.breadcrumbs,C=_.breadcrumbNodes,y=_.nodeAndAncestors,b=_.tags,P=function(){p(C[C.length-1].parent.nodeId)},I=function(){o.current&&o.current.animateInfoText()},N=function(){f(!1,b)};return(0,j.jsx)(K.$5,(0,w.Cl)({value:n.generic},{children:(0,j.jsx)(tQ,(0,w.Cl)({currentNode:g,onClose:N,isOpen:!0,renderHeader:function(){return(0,j.jsx)(V,(0,w.Cl)({mode:"advisor",question:g.q,showInfo:U(g)&&!!g.infoText,onInfoCl
1ick:I,nodeHierarchyLength:y.length,onBackButtonClick:P,onModalClose:N},{children:(0,j.jsx)(Y,{breadcrumbs:x,mode:v?"question":"answer",isResultPage:D(g)})}))}},{children:(0,j.jsx)(tG.A,(0,w.Cl)({fallbackRender:function(e){return(0,j.jsx)(el,(0,w.Cl)({},e))}},{children:(0,j.jsx)(tW,{node:g,tags:b,ref:o})}))}))}))},tJ=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];null==(e=null==window?void 0:window.hj)||e.call.apply(e,(0,w.fX)([window],(0,w.zs)(t),!1))},tY=function(){var e=(0,X.U)(),t=e.brand,r=e.country,n=e.petType,a=e.showModal,o=(0,T.useRef)();return(0,T.useEffect)(function(){var e="".concat(t,"_").concat(n,"_").concat(r);a&&e!==o.current&&(o.current=e,(0,P.uv)(P.y1.FoodAdvisorMounted,e)),a||(o.current=void 0)},[a,t,r,n]),(0,T.useEffect)(function(){tJ("trigger","food_advisor_heatmap"),tJ("tagRecording",["food_advisor"]),tJ("trigger","food_advisor_recording")},[]),(0,j.jsx)(tG.A,{children:a&&(0,j.jsx)(tV,{})})}}}]);
2//# sourceMappingURL=9978.c147bf8fe3f61f99.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.