1(this["webpackJsonpfpt-industrial"]=this["webpackJsonpfpt-industrial"]||[]).push([[108],{1454:function(e,t,l){},1559:function(e,t,l){"use strict";l.r(t);var i=l(133),n=l(688),r=l(164),a=l(166),s=l.n(a),d=l(2),c=l(719),o=l.n(c),u=l(698),v=l.n(u),b=l(109),j=(l(1454),l(0)),f=function(e){return(null!==e&&void 0!==e?e:"").toLowerCase()},h=function(e,t){var l=new Set;return e.filter((function(e){var i=f(e.id);return!!i&&((!t||i!==f(t))&&(!l.has(i)&&(l.add(i),!0)))})).slice(0,10)},p=Object(d.memo)((function(e){var t,l,i,n,r,a,s,d,c,o,u,v=e.part,f=Object(b.b)().t;return Object(j.jsxs)("div",{className:"RelatedPartCard",children:[Object(j.jsxs)("div",{children:[Object(j.jsx)("h3",{className:"RelatedPartCard__title",children:null===v||void 0===v||null===(t=v.fields)||void 0===t||null===(l=t.teaserTitle)||void 0===l?void 0:l.value}),Object(j.jsx)("div",{className:"RelatedPartCard__image",children:Object(j.jsx)("img",{loading:"lazy",src:null===v||void 0===v||null===(i=v.fields)||void 0===i||null===(n=i.teaserImage)||void 0===n||null===(r=n.value)||void 0===r?void 0:r.src,alt:null===v||void 0===v||null===(a=v.fields)||void 0===a||null===(s=a.teaserImage)||void 0===s||null===(d=s.value)||void 0===d?void 0:d.alt})}),(null===v||void 0===v||null===(c=v.fields)||void 0===c?void 0:c.compatibleProducts.length)>0&&Object(j.jsxs)(j.Fragment,{children:[Object(j.jsx)("p",{className:"RelatedPartCard__compatible_label",children:f("CompatibleProducts")}),Object(j.jsx)("p",{className:"RelatedPartCard__compatible_value",children:null===v||void 0===v||null===(o=v.fields)||void 0===o||null===(u=o.compatibleProducts)||void 0===u?void 0:u.map((function(e){return e.displayName})).join(", ")})]})]}),Object(j.jsx)("a",{className:"RelatedPartCard__more ga4-click-ui-correlati",href:null===v||void 0===v?void 0:v.itemUrl,children:f("ShowProduct")})]})}));t.default=function(e){var t=e.fields,l=Object(b.b)().t,a=Object(d.useState)([]),c=Object(r.a)(a,2),u=c[0],f=c[1],m=Object(d.useMemo)((function(){return function(e){var t,l=e.match(/exclude=\{?([0-9a-fA-F-]{36})\}?/);return null!==(t=null===l||void 0===l?void 0:l[1])&&void 0!==t?t:null}(t.filterUrl)}),[t.filterUrl]),O=Object(d.useCallback)(Object(n.a)(s.a.mark((function e(){var l,i,n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.suggestedProducts&&t.suggestedProducts.length>0)){e.next=3;break}return f(h(t.suggestedProducts,m)),e.abrupt("return");case 3:return e.next=5,o.a.get(t.filterUrl);case 5:n=e.sent,r=null!==(l=null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.teasers)&&void 0!==l?l:[],f(h(r,m));case 8:case"end":return e.stop()}}),e)}))),[t.filterUrl,t.suggestedProducts,m]);Object(d.useEffect)((function(){O()}),[O]);var x=Object(d.useRef)(null),g=Object(d.useMemo)((function(){return u.length}),[u]);return Object(j.jsx)("div",{id:"related-products-by-category",className:"RelatedGenuinePartsByCategoryResolver",children:Object(j.jsxs)("div",{children:[Object(j.jsx)("h2",{className:"RelatedGenuinePartsByCategoryResolver__title",children:l("OtherProductsTitle")}),Object(j.jsx)("button",{type:"button",className:"slider-arrow prev",onClick:function(){var e;null===(e=x.current)||void 0===e||e.slickPrev()},"aria-label":"Previous",style:g<=4?{display:"none",visibility:"hidden"}:null,children:Object(j.jsx)("svg",{width:"12",height:"21",viewBox:"0 0 12 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(j.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.74218e-07 10.4069L0.982644 11.4486L9.86128 20.8125L12 18.729L4.10393 10.4068L12 2.08461L9.86129 0.00115484L0.982644 9.36501L8.74218e-07 10.4069Z",fill:"white"})})}),Object(j.jsx)("button",{type:"button",className:"slider-arrow next",onClick:function(){var e;null===(e=x.current)||void 0===e||e.slickNext()},"aria-label":"Next",style:g<=4?{display:"none",visibility:"hidden"}:null,children:Object(j.jsx)("svg",{width:"12",height:"21",viewBox:"0 0 12 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(j.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 10.4069L11.0174 11.4486L2.13872 20.8125L-1.75041e-07 18.729L7.89607 10.4068L-1.57341e-06 2.08461L2.13871 0.00115484L11.0174 9.36501L12 10.4069Z",fill:"white"})})}),Object(j.jsx)("div",{className:"RelatedGenuinePartsByCategoryResolver__slider_container",style:g<4&&g>0?{maxWidth:273*g+16*(g-1)}:null,children:u.length>0&&Object(j.jsx)(v.a,Object(i.a)(Object(i.a)({ref:x},{dots:!0,arrows:!1,infinite:!0,speed:500,slidesToScroll:1,variableWidth:!0}),{},{children:u.map((function(e){return Object(j.jsx)(p,{part:e},e.id)}))}))})]})})}},688:function(e,t,l){"use strict";function i(e,t,l,i,n,r,a){try{var s=e[r](a),d=s.value}catch(c){return void l(c)}s.done?t(d):Promise.resolve(d).then(i,n)}function n(e){return function(){var t=this,l=arguments;return new Promise((function(n,r){var a=e.apply(t,l);function s(e){i(a,n,r,s,d,"next",e)}function d(e){i(a,n,r,s,d,"throw",e)}s(void 0)}))}}l.d(t,"a",(function(){return n}))}}]); 2//# sourceMappingURL=RelatedGenuinePartsByCategoryResolver.07da1b60.chunk.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.