PageSourceSearch

https://thermonoord.nl/_ui/responsive/common/custom/js/chunks/SpareParts.796e17bec839d31e67eb.js

js thermonoord.nl collected 2026-10-07 19:01:45 UTC 72,795 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpliegerstorefront=self.webpackChunkpliegerstorefront||[]).push([[5225,8358],{1091:(e,t,r)=>{r.d(t,{A:()=>s,N:()=>c});var n=r(96540),a=r(55494),o=r(46942),i=r.n(o),l=r(99418),c=function(e){return e.NEUTRAL="neutral",e.WARNING="warning",e.ERROR="error",e.SUCCESS="success",e.SUBTLE="subtle",e}({});const s=function(e){var t=e.canDismiss,r=e.title,o=e.message,s=e.htmlMessage,u=e.type,f=e.height,p=e.width,d=e.classes,m=e.showNotification,v=void 0===m||m,h=e.onDismiss,g=i()({"c-inline-notification":!0,"c-inline-notification--neutral":u===c.NEUTRAL,"c-inline-notification--warning":u===c.WARNING,"c-inline-notification--success":u===c.SUCCESS,"c-inline-notification--error":u===c.ERROR,"c-inline-notification--subtle":u===c.SUBTLE,["".concat(d)]:Boolean(d)});return v?n.createElement("div",{className:g,style:{height:f||void 0,width:p||void 0}},n.createElement("div",{className:"inline-notification__container"},n.createElement(a.A,{className:"inline-notification__info-icon",src:function(){switch(u){case c.WARNING:return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M10.5 12L10.5 6H13.5L13.5 12H10.5Z" fill="#1C1C1C"/>\n<path d="M12 18C13.1046 18 14 17.1046 14 16C14 14.8954 13.1046 14 12 14C10.8954 14 10 14.8954 10 16C10 17.1046 10.8954 18 12 18Z" fill="#1C1C1C"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C5.37258 -5.79386e-07 5.79387e-07 5.37258 0 12C-5.79387e-07 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 5.79388e-07 12 0ZM12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3Z" fill="#1C1C1C"/>\n</svg>\n';case c.SUCCESS:return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.32667 9.22L10.4 13.3173L17.6733 6L20 8.34133L10.4 18L4 11.56L6.32667 9.22Z" fill="#00722E"/>\n</svg>\n';case c.ERROR:return'<svg viewBox="0 0 16 14" width="100%" height="100%"  xmlns="http://www.w3.org/2000/svg"><path d="M8 0l8 14H0L8 0zm1 10H7v2h2v-2zm0-5H7v4h2V5z"/></svg>';default:return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM13.5 12V18H10.5V12H13.5ZM12 6C10.8954 6 10 6.89543 10 8C10 9.10457 10.8954 10 12 10C13.1046 10 14 9.10457 14 8C14 6.89543 13.1046 6 12 6Z" fill="#1C1C1C"/>\n</svg>\n'}}()}),n.createElement("div",{className:"inline-notification__wrapper"},r?n.createElement("span",{className:"inline-notification__title"},r):null,o||s?s?n.createElement("span",{className:"inline-notification__content",dangerouslySetInnerHTML:{__html:l.A.sanitize(s)}}):n.createElement("span",{className:"inline-notification__content"},o):null)),t&&n.createElement("div",{className:"icon-container"},n.createElement(a.A,{className:"inline-notification__close-icon",src:'<svg preserveAspectRatio="none" viewBox="0 0 19 19" xmlns="http://www.w3.org/2000/svg">\n  <g>\n    <path d="M2.828 0l16.264 16.264-2.829 2.828L0 2.829z"/>\n    <path d="M19.092 2.828L2.828 19.092 0 16.263 16.263 0z"/>\n  </g>\n</svg>',onClick:function(){return null==h?void 0:h()}}))):null}},22539:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(96540),a=r(61019),o=r(38130),i=r(25568),l=r(48880),c=r(8052),s=r(46942),u=r.n(s),f=r(23489),p=r(5398),d=r(65142),m=r(49045),v=r(79330),h=r(22022),g=r(29135),y=r(36819),b=r(28853),w=r(60798);function _(e){var t=e.className,r=e.facetMetaData,s=(0,d.u)(),_=s.setFilterSidebarOpen,E=s.loading,S=s.setLoading,C=(0,v.N)().setActiveOverlay,A=(0,h.Bd)().t,N=(0,m.A)(f.$.lg.max),O=(0,d.u)().filterSidebarOpen,P=(0,p.fY)().nrOfCurrentResults,j=(0,w.J)().indexUiState.refinementList;(0,n.useEffect)((function(){return O&&(0,y.dx)(),function(){var e;g.Hz&&(null===(e=document.body)||void 0===e||e.classList.remove(g.Hz))}}),[O]),(0,n.useEffect)((function(){N||_(!1)}),[N]),(0,n.useEffect)((function(){S(!1)}),[P,j]);var x=function(){_(!1),C({id:null})},k=u()({"c-filter-bar":!0,["".concat(t)]:Boolean(t),"c-filter-bar--in-sidebar":N}),I=u()({"c-filter-sidebar":N,"c-filter-sidebar--open":O});return n.createElement("div",{className:I},n.createElement("div",{className:k},n.createElement("h3",{className:"c-heading--h3 filter-bar__title"},A("filters.title")),n.createElement(a.A,{className:"filter-bar__close-sidebar",onClick:function(){return x()}},n.createElement(o.default,null)),N?n.createElement(c.A,{facetMetaData:r}):null,n.createElement("div",{className:"dynamic-filters__container"},n.createElement(l.A,{facetMetaData:r})),n.createElement("div",{className:u()({"filter-bar__show-products-button__wrapper":N})},n.createElement(a.A,{className:"filter-bar__show-products-button u-width--100",onClick:function(){return x()}},n.createElement(i.A,{className:"c-cta-main--black"},E?n.createElement(b.A,null):A("facet.overlay.show.results",{nrOfCurrentResults:P}))))))}},42425:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});r(62062),r(26099);var n=r(72498),a=function(e){return e.BLANK="blank",e.SAMEWINDOW="sameWindow",e.NEWWINDOW="newWindow",e}({}),o=r(14811),i=r(78473),l=r(96540),c=r(55494),s=r(51400),u='<svg preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 19">\n  <path d="M13.885.5l-1.713 1.766 5.72 5.976H.5v2.516h17.392l-5.72 5.976 1.713 1.766 8.615-9z" />\n</svg>';function f(e){var t,r,f,p,d=e.tile,m=e.parentCategory,v=e.onClick,h=e.clp;return l.createElement(o.A,{title:d.linkName,href:null!==(t=d.category)&&void 0!==t&&t.uid?"/c/".concat(d.category.uid):d.url,target:d.target===a.NEWWINDOW||d.target===a.BLANK?"_blank":"_self",onClick:function(){var e;h&&(window.location.href=null!==(e=d.category)&&void 0!==e&&e.uid?"/c/".concat(d.category.uid):d.url||"#",(0,s.Sl)({type:n.U.TILE,category1:m||"",category2:d.name||"",category3:"",label:d.name}));v&&v(d)}},l.createElement("div",{className:"c-category-tile"},null!=d&&null!==(r=d.labels)&&void 0!==r&&r.length?l.createElement(i.A,{labels:null==d?void 0:d.labels}):null,l.createElement("img",{className:"category-tile__image",src:null===(f=d.image)||void 0===f?void 0:f.url,alt:null===(p=d.image)||void 0===p?void 0:p.altText}),l.createElement("p",{className:"category-tile__title"},l.createElement(c.A,{className:"category-arrow__icon",src:u}),d.linkName||d.name)))}function p(e){var t=e.gridName,r=e.linkTiles,n=e.breadcrumb,a=e.onClick,o=e.clp;return l.createElement("div",{className:"c-category-grid",id:t},r&&r.map((function(e){return l.createElement("div",{key:e.linkName||e.name},l.createElement(f,{onClick:a,clp:o,parentCategory:o&&Array.isArray(n)&&n.length>0&&n[0].name?n[0].name:"",tile:e}))})))}},47309:(e,t,r)=>{r.d(t,{A:()=>ue});r(52675),r(89463),r(23792),r(34782),r(26099),r(3362),r(27495),r(38781),r(62953),r(3296),r(27208),r(48408);var n=r(10585),a=r(96540),o=r(25568),i=r(47491),l=r(55352),c=r(55494),s=(r(62062),r(23500),r(95278)),u=r(23217),f=r(32218),p="data-spare-parts-id";function d(e){var t=e.drawing,r=e.loading,n=e.hotspots,o=e.setSelectedHotSpot,i=(0,f.h)(),l=i.setSelectedHotSpotId,d=i.disabledHotspots,m=(0,a.useRef)(document.createElement("div")),v=(0,a.useRef)(null);document.querySelectorAll(".pcg_hotspot").forEach((function(e){e.setAttribute("rx","0")})),(0,a.useEffect)((function(){null==d||d.map((function(e){var t,r=null===(t=v.current)||void 0===t?void 0:t.querySelector('[id="'.concat(e,'"]'));r&&r.classList.add("spare-parts__hotspot--disabled")}))}),[d,v.current]);return a.createElement("div",{className:"spare-parts-overlay__drawing",ref:m,onClick:function(e){if(e.target.id){document.querySelectorAll(".spare-parts__hotspot--selected").forEach((function(e){e.classList.remove("spare-parts__hotspot--selected")}));var t=e.target.getAttribute(p);document.querySelectorAll('[data-spare-parts-id="'.concat(t,'"]')).forEac
1h((function(e){e.classList.add("spare-parts__hotspot--selected")})),l(e.target.id);var r=n.find((function(t){return t.hotSpotId===e.target.id}));o(r);var a=document.getElementById(e.target.id);a&&a.classList.add("spare-parts__hotspot--selected")}}},a.createElement(u.WZ,null,r?a.createElement(s.A,{loading:r}):t&&a.createElement(c.A,{onLoad:function(){null==n||n.forEach((function(e){var t=document.getElementById(e.hotSpotId);t&&t.setAttribute(p,e.productCode)}))},innerRef:v,src:t})))}r(28706);var m=r(61019),v=r(46942),h=r.n(v),g=r(23489),y=r(49045),b=r(35193),w=r(22022);function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var S='<svg width="9" height="13" viewBox="0 0 9 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M1.5 1.5L6.5 6.5L1.5 11.5" stroke="#0037FF" stroke-width="3"/>\n</svg>\n',C='<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 13v8h8v-2.667H5.667V13H3ZM11 3H3v8h2.667V5.667H11V3ZM21 11V3h-8v2.667h5.333V11H21ZM13 21h8v-8h-2.667v5.333H13V21Z" fill="#1C1C1C"/></svg>',A='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11 16C14.3137 16 17 13.3137 17 10C17 6.68629 14.3137 4 11 4C7.68629 4 5 6.68629 5 10C5 13.3137 7.68629 16 11 16ZM11 19C15.9706 19 20 14.9706 20 10C20 5.02944 15.9706 1 11 1C6.02944 1 2 5.02944 2 10C2 14.9706 6.02944 19 11 19Z" fill="#1C1C1C"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M20 22L15 17L17.1213 14.8787L22.1213 19.8787L20 22Z" fill="#1C1C1C"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M7 9H15V11H7V9Z" fill="#1C1C1C"/>\n</svg>\n',N='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11 16C14.3137 16 17 13.3137 17 10C17 6.68629 14.3137 4 11 4C7.68629 4 5 6.68629 5 10C5 13.3137 7.68629 16 11 16ZM11 19C15.9706 19 20 14.9706 20 10C20 5.02944 15.9706 1 11 1C6.02944 1 2 5.02944 2 10C2 14.9706 6.02944 19 11 19Z" fill="#1C1C1C"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M20 22L15 17L17.1213 14.8787L22.1213 19.8787L20 22Z" fill="#1C1C1C"/>\n<path d="M10 9H7V11H10V14H12V11H15V9H12V6H10V9Z" fill="#1C1C1C"/>\n</svg>\n';function O(){var e=(0,f.h)(),t=e.setSparePartsId,r=e.sparePartsId,n=e.thumbnails,o=(0,u._5)(),i=o.zoomIn,l=o.zoomOut,s=o.resetTransform,p=o.centerView,d=(0,w.Bd)().t,v=_(a.useState(0),2),E=v[0],O=v[1],P=_((0,a.useState)(1),2),j=P[0],x=P[1],k=_((0,a.useState)(!1),2),I=k[0],T=k[1],M=_((0,a.useState)(!1),2),L=M[0],R=M[1],V=(0,y.A)(g.$.md.min),H=(0,b.A)();(0,a.useEffect)((function(){p()}),[H]),(0,u.Be)((function(e){x(e.state.scale)})),(0,a.useEffect)((function(){R(1===j),T(10===j)}),[j]),(0,a.useEffect)((function(){null==n||n.find((function(e,t){return e.id===r&&O(t+1)}))}),[r,n]);var B,G=function(e){return e.NEXT="NEXT",e.PREV="PREV",e}({}),Z=function(e){if(s(),e===G.NEXT){var r=E%n.length;t(n[r].id)}if(e===G.PREV){var a=(E-2+n.length)%n.length;t(n[a].id)}},D=h()({"c-pagination__button-nav":!0}),F=h()({"c-pagination__button-nav":!0}),U=function(e){return h()({"c-pagination__button-nav":!0,"c-pagination__button-nav--disabled":e})},z=function(e){return h()({"c-pagination__button-nav__icon":!0,"c-pagination__button-nav__icon--disabled":e})};return a.createElement("div",{className:"c-spare-parts-drawing-control
1s"},n&&n.length>1&&a.createElement(a.Fragment,null,a.createElement("div",{className:"spare-parts-drawing-controls--select"},a.createElement(m.A,{className:D,onClick:function(){return Z(G.PREV)}},a.createElement("span",null,a.createElement(c.A,{className:"c-pagination__button-nav__icon c-pagination__button-nav__icon--left",src:S}))),a.createElement(m.A,{className:F,onClick:function(){return Z(G.NEXT)}},a.createElement("span",null,a.createElement(c.A,{className:"c-pagination__button-nav__icon",src:S})))),E?a.createElement("span",{className:"spare-parts-drawing-controls--text"},V?d("spare.parts.thumbnails.title"):null," ","".concat(E," / ").concat(null==n?void 0:n.length)):null),a.createElement("div",{className:"spare-parts-drawing-controls__zoom-controls"},a.createElement(m.A,{className:U(L),onClick:function(){l()},disabled:L},a.createElement("span",null,a.createElement(c.A,{className:z(L),src:A}))),a.createElement(m.A,{className:U(I),onClick:function(){i()},disabled:I},a.createElement("span",null,a.createElement(c.A,{className:z(I),src:N}))),a.createElement(m.A,{className:(B=L,h()({"c-pagination__button-nav":!0,"pagination__button-nav--fit":!0,"c-pagination__button-nav--disabled":B})),onClick:function(){s()},disabled:L},a.createElement("span",null,a.createElement(c.A,{className:z(L),src:C})))))}var P=r(38130),j=r(65836),x=r(79330),k=r(55606),I='<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 121 16">\n  <g>\n    <path d="M10.876 6.313H6.52V3.935h4.331c.932 0 1.282.643 1.282 1.18 0 .515-.317 1.198-1.258 1.198M12.713.075H.5v15.312h6.02v-5.216h6.297c3.636 0 5.767-2.115 5.767-5.057 0-3.165-2.299-5.04-5.871-5.04M25.882 0h-6.244v15.484H34.12V11.59h-8.24zM35.672 15.484h6.207V0h-6.207zM49.596 9.4h9.538V5.584h-9.538V3.922h10.097V.015H49.596V0h-6.165v15.484h6.165v-.002h10.387v-3.908H49.596zM88.906 9.4h9.538V5.584h-9.538V3.922h10.097V.015H88.906V0h-6.165v15.484h6.165v-.002h10.387v-3.908H88.906zM70.16 10.338h3.997c-.032.372-.065.417-.101.46-.504.614-1.466 1.099-3.014 1.099-2.302 0-3.77-1.213-3.77-3.673 0-2.231.87-4.027 3.658-4.027 3.116 0 3.302 1.693 3.302 1.693h6.864c0-2.904-2.404-5.89-10.323-5.89C63.252 0 60.5 3.808 60.5 8.063 60.5 13.17 64.366 16 70.045 16c2.448 0 4.429-.785 5.85-1.824l-.006 1.508h5.3V7.077H70.16v3.261zM112.252 6.308h-4.847V3.903h4.824c.935 0 1.286.65 1.286 1.193 0 .522-.318 1.212-1.263 1.212zm8.248 9.168l-3.68-5.662c2.028-.713 3.168-2.55 3.168-4.718 0-3.2-2.307-5.096-5.892-5.096h-12.734v15.484h6.043V10.21h2.618l3.433 5.266h7.044z"/>\n  </g>\n</svg>',T='<svg width="230" height="16" viewBox="0 0 230 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11.7609 15.5862H5.71233V4.49713H0V0.361609H17.4478V4.49713H11.7609V15.5862ZM31.7159 5.89347V0.361609H37.7645V15.5862H31.7159V10.0805H24.9696V15.5862H18.8949V0.361609H24.9696V5.89347H31.7159ZM55.9616 15.5862H39.729V0.361609H55.7036V4.18698H45.7768V5.9964H55.1595V9.64062H45.7768V11.7341H55.9
1609V15.5862H55.9616ZM76.5369 15.5862H69.4543L66.2493 10.2616H63.6384V15.5862H57.5898V0.361609H70.1522C74.0036 0.361609 76.2782 2.22249 76.2782 5.3761C76.2782 7.62467 75.063 9.20148 72.9696 9.87392L76.5369 15.5862ZM69.7384 5.3761C69.7384 4.62613 69.1696 4.18698 68.2131 4.18698H63.6377V6.53915H68.2131C69.1696 6.53915 69.7384 6.10001 69.7384 5.3761ZM83.8261 6.20362V15.5862H77.8811V0.361609H86.4109L89.5899 8.99494L92.7689 0.361609H101.299V15.5862H95.3536V6.15147L91.6833 15.5862H87.4703L83.8261 6.20362ZM123.658 7.98696C123.658 13.1826 119.936 16 113.241 16C106.495 16 102.747 13.1826 102.747 7.98696C102.747 2.79132 106.495 0 113.241 0C119.936 0 123.658 2.79132 123.658 7.98696ZM116.964 7.98696C116.964 5.45364 115.646 4.10944 113.241 4.10944C110.785 4.10944 109.441 5.45364 109.441 7.98696C109.441 10.5203 110.785 11.8645 113.241 11.8645C115.645 11.8645 116.964 10.5203 116.964 7.98696ZM143.872 15.5862H136.169L131.051 6.53915V15.5862H125.106V0.361609H132.86L137.926 9.58916V0.361609H143.871V15.5862H143.872ZM166.23 7.98696C166.23 13.1826 162.508 16 155.814 16C149.067 16 145.319 13.1826 145.319 7.98696C145.319 2.79132 149.067 0 155.814 0C162.508 0 166.23 2.79132 166.23 7.98696ZM159.535 7.98696C159.535 5.45364 158.217 4.10944 155.813 4.10944C153.357 4.10944 152.013 5.45364 152.013 7.98696C152.013 10.5203 153.357 11.8645 155.813 11.8645C158.217 11.8645 159.535 10.5203 159.535 7.98696ZM188.33 7.98696C188.33 13.1826 184.608 16 177.914 16C171.167 16 167.42 13.1826 167.42 7.98696C167.42 2.79132 171.167 0 177.914 0C184.609 0 188.33 2.79132 188.33 7.98696ZM181.636 7.98696C181.636 5.45364 180.318 4.10944 177.914 4.10944C175.458 4.10944 174.114 5.45364 174.114 7.98696C174.114 10.5203 175.458 11.8899 177.914 11.8899C180.318 11.8899 181.636 10.5203 181.636 7.98696ZM208.725 15.5862H201.643L198.438 10.2616H195.827V15.5862H189.778V0.361609H202.341C206.192 0.361609 208.467 2.22249 208.467 5.3761C208.467 7.62467 207.251 9.20148 205.158 9.87392L208.725 15.5862ZM201.927 5.3761C201.927 4.62613 201.358 4.18698 200.402 4.18698H195.827V6.53915H200.402C201.358 6.53915 201.927 6.10001 201.927 5.3761ZM219.943 15.5862H210.069V0.361609H220.047C226.044 0.361609 229.249 2.99786 229.249 7.96089C229.248 12.9239 226.017 15.5862 219.943 15.5862ZM222.554 7.96089C222.554 5.66018 221.313 4.44566 218.961 4.44566H216.117V11.5022H218.883C221.288 11.5022 222.554 10.2616 222.554 7.96089Z" fill="white"/>\n</svg>\n';function M(e){var t=e.onClose,r=(0,x.N)().setCloseAnimatedOverlay,n=(0,w.Bd)().t,o=(0,k.j)().siteIsThermonoord,i=(0,y.A)(g.$.md.max);return a.createElement("div",{className:"spare-parts__header"},a.createElement(c.A,{className:"spare-parts__header-logo",src:o?T:I}),a.createElement("h5",{className:"spare-parts__header-title"},n("spare.parts.header.title")),a.createElement(j.A,{triggerLocation:i?"SPAREPARTS_DRAWING_MOBILE":"SPAREPARTS_DRAWING_DESKTOP",tooltipText:n("tooltip.explanation")}),a.createElement(m.A,{ariaLabel:n("aria.label.close"),onClick:function(){t(),r(!0)},className:"c-modal-heading-close__close-button"},a.createElement(P.default,{className:"c-cta-close--overlay-close__white"})))}r(45700),r(2008),r(89572),r(36033),r(81278);var L=r(58470),R=r(64451),V=r(86641),H=r(61142),B=r(89947),G=r(50948),Z=r(16340),D=r(59834),F=r(1091),U=r(36819),z=r(72635),$=r(51400);function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function o(r,n,a,o){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return Y(s,"_invoke",function(r,n,a){var o,l,c,s=0,u=a||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,l=0,c=e,p.n=r,i}};function d(r,n){for(l=r,c=n,t=0;!f&&s&&!a&&t<u.length;t++){var a,o=u[t],d=p.p,m=o[2];r>3?(a=m===n)&&(c=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=d&&((a=r<2&&d<o[1])?(l=0,p.v=n,p.n=o[1]):d<m&&(a=r<3||o[0]>n||n>m)&&(o[4]=r,o[5]=n,p.n=m,l=0))}if(a||r>1)return i;throw f=!0,n}return function(a,u,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,m),l=u,c=m;(t=l<2?e:c)||!f;){o||(l?l<3?(l>1&&(p.n=-1),d(l,c)):p.n=c:p.v=c);try{if(s=2,o){if(l||(a="next"),t=o[a]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(t){o=e,l=1,c=t}finally{s=1}}return{value:t,done:f}}}(r,a,o),!0),s}var i={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Y(t={},n,(function(){return this})),t),f=s.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Y(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=s,Y(f,"constructor",s),Y(s,"constructor",c),c.displayName="GeneratorFunction",Y(s,a,"GeneratorFunction"),Y(f),Y(f,a,"Generator"),Y(f,n,(function(){return this})),Y(f,"toString",(function(){return"[object Generator]"})),(X=function(){return{w:o,m:p}})()}function Y(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}Y=function(e,t,r,n){function o(t,r){Y(e,t,(function(e){return this._invoke(t,r,e)}))}t?a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},Y(e,t,r,n)}function Q(e,t,r,n,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,a)}function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ee(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function te(e){var t=e.hotspots,r=e.selectedHotSpot,n=K((0,a.useState)(!1),2),o=n[0],i=n[1],l=K((0,a.useState)(!1),2),c=l[0],s=l[1],u=K((0,a.useState)(),2),d=u[0],m=u[1],v=(0,L.VX)().priceSettings,g=K((0,a.useState)(),2),y=g[0],b=g[1],w=(0,f.h)(),_=w.setDisabledHotspots,E=w.selectedHotSpotId,S=w.setSelectedHotSpotId,C=w.setProductCodes,A=w.productCodes,N=(0,Z.A)(),O=N.fetchStockInfo,P=N.stockInfo,j=(0,D.P)().favoriteStore,x=(0,B.A)(A),I=x.fetchLabels,T=x.labels,M=(0,G.A)(),W=M.fetchPrices,J=M.prices,Y=M.priceIsloading,ee=M.fetchPriceError,te=K((0,a.useState)(null),2),re=te[0],ne=te[1],ae=(0,k.j)().siteIsThermonoord,oe=(0,U.Lf)(ae);(0,a.useEffect)((function(){t||C([]);var e=null==t?void 0:t.map((function(e){return e.productCode})).filter((function(e){return Boolean(e)}));C(e)}),[t]),(0,a.useEffect)((function(){i(!0);var e=function(){var e,t=(e=X().m((function e(){var t,r,n;return X().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,A.length){e.n=1;break}return s(!0),i(!1),e.a(2);case 1:if(s(!1),(null==v?void 0:v.selectedPriceVersion)!==L.ON.nett){e.n=3;break}return W(A),e.n=2,(0,H.VE)(A,"basic");case 2:t=e.v,m(t.Producten),e.n=5;break;case 3:return e.n=4,(0,H._y)(A);case 4:r=e.v,m(JSON.parse(r).Producten);case 5:O(A),I(),e.n=7;break;case 6:e.p=6,n=e.v,console.error("SpareParts drawing could not be fetched",n);case 7:return e.p=7,i(!1),e.f(7);case 8:return e.a(2)}}),e,null,[[0,6,7,8]])})),function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Q(o,n,a,i,l,"next",e)}function l(e){Q(o,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();e()}),[A,null==v?void 0:v.selectedPriceVersion,j]),(0,a.useEffect)((function(){if(r){ne(r.productCode);var e=setTimeout((function(){ne(null)}),3e3);return function(){return clearTimeout(e)}}}),[r]),(0,a.useEffect)((function(){var e=new Map(null==d?void 0:d.map((function(e){var t;return[null==e||null===(t=e.target)||void 0===t?void 0:t.code,e]}))),r=[];
1t&&t.forEach((function(t){r.find((function(e){return t.productCode&&e.hotspot.productCode&&e.hotspot.productCode===t.productCode}))||r.push({hotspot:t,product:e.get(t.productCode)||null})})),null!=d&&d.length&&b(r)}),[d,t]);var ie=function(e){var t=e.productCode,r=e.enter;document.querySelectorAll("[".concat(p,'="').concat(t,'"]')).forEach((function(e){r?e.classList.add("spare-parts__hotspot--active"):e.classList.remove("spare-parts__hotspot--active")}))};if((0,a.useEffect)((function(){var e=null==y?void 0:y.map((function(e){var t,r,n=null==e||null===(t=e.product)||void 0===t?void 0:t.target;if(null==n||!n.code||"3"===(null==n?void 0:n.ccNumber))return null==e||null===(r=e.hotspot)||void 0===r?void 0:r.hotSpotId}));_(e)}),[y]),o)return Array.from({length:5},(function(e,t){return a.createElement(V.A,{key:t,height:355})}));if(!o&&c)return a.createElement("div",{className:"spare-parts-products__no-products-notification"},a.createElement(F.A,{type:F.N.NEUTRAL,width:"100%",title:(0,z.t)("spare.parts.no.parts.error.title"),message:(0,z.t)("spare.parts.no.parts.error.message",{express:oe})}));return y?null==y?void 0:y.map((function(e,t){var n,i,l,c=null==e||null===(n=e.product)||void 0===n?void 0:n.target,s=null==e?void 0:e.hotspot;return null!=c&&c.code?a.createElement("div",{className:"c-spare-parts-products",key:s.hotSpotId},a.createElement("div",{className:(l=s.position,h()({"spare-parts-products__position":!0,"spare-parts-products__position-long":l.length>2})),onMouseEnter:function(){return ie({productCode:c.code,enter:!0})},onMouseLeave:function(){return ie({productCode:c.code,enter:!1})},onClick:function(){!function(e,t){S(e.hotSpotId),ne(t),document.querySelectorAll(".spare-parts__hotspot--selected").forEach((function(e){e.classList.remove("spare-parts__hotspot--selected")}));var r=document.querySelectorAll("[".concat(p,'="').concat(t,'"]'));null==r||r.forEach((function(e){e.classList.add("spare-parts__hotspot--selected")}))}(s,c.code)}},s.position),a.createElement(R.default,{compactTile:!0,key:"".concat(null==c?void 0:c.code,"-").concat(s.position),loading:o,index:t,listName:$.b.PARTS_FINDER,asyncPriceData:{fetchPriceError:ee,priceIsloading:Y,hasAsyncPrice:!0},product:q(q({},c),{},{price:J&&null!==(i=J[null==c?void 0:c.code])&&void 0!==i&&i.price?J[null==c?void 0:c.code].price:null==c?void 0:c.price,stockInfo:P&&P[null==c?void 0:c.code]?P[null==c?void 0:c.code]:null==c?void 0:c.stockInfo,labels:T&&T[null==c?void 0:c.code]?T[null==c?void 0:c.code]:[]}),selected:E?re===(null==c?void 0:c.code):(null==c?void 0:c.code)&&(null==c?void 0:c.code)===(null==r?void 0:r.productCode),highlight:re===(null==c?void 0:c.code),lazy:!1,target:"_blank",isFromSpareParts:!0})):null})):null}var re=r(83389),ne=r(15309);function ae(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function o(r,n,a,o){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return oe(s,"_invoke",function(r,n,a){var o,l,c,s=0,u=a||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,l=0,c=e,p.n=r,i}};function d(r,n){for(l=r,c=n,t=0;!f&&s&&!a&&t<u.length;t++){var a,o=u[t],d=p.p,m=o[2];r>3?(a=m===n)&&(c=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=d&&((a=r<2&&d<o[1])?(l=0,p.v=n,p.n=o[1]):d<m&&(a=r<3||o[0]>n||n>m)&&(o[4]=r,o[5]=n,p.n=m,l=0))}if(a||r>1)return i;throw f=!0,n}return function(a,u,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,m),l=u,c=m;(t=l<2?e:c)||!f;){o||(l?l<3?(l>1&&(p.n=-1),d(l,c)):p.n=c:p.v=c);try{if(s=2,o){if(l||(a="next"),t=o[a]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(t){o=e,l=1,c=t}finally{s=1}}return{value:t,done:f}}}(r,a,o),!0),s}var i={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(oe(t={},n,(function(){return this})),t),f=s.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,oe(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=s,oe(f,"constructor",s),oe(s,"constructor",c),c.displayName="GeneratorFunction",oe(s,a,"GeneratorFunction"),oe(f),oe(f,a,"Generator"),oe(f,n,(function(){return this})),oe(f,"toString",(function(){return"[object Generator]"})),(ae=function(){return{w:o,m:p}})()}function oe(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}oe=function(e,t,r,n){function o(t,r){oe(e,t,(function(e){return this._invoke(t,r,e)}))}t?a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},oe(e,t,r,n)}function ie(e,t,r,n,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,a)}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}
1finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ce(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ce(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var se='<svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 2L7 7L12 2" stroke="#ffffff" stroke-width="3"/></svg>\n';function ue(){var e=(0,w.Bd)().t,t=(0,f.h)(),r=t.sparePartsId,s=t.setSparePartsId,p=t.setProductCodes,m=t.setDisabledHotspots,v=le((0,a.useState)(!1),2),b=v[0],_=v[1],E=le((0,a.useState)(!1),2),S=E[0],C=E[1],A=le((0,a.useState)(),2),N=A[0],P=A[1],j=le((0,a.useState)([]),2),x=j[0],k=j[1],I=le((0,a.useState)(null),2),T=I[0],L=I[1],R=le((0,a.useState)(),2),V=R[0],H=R[1],B=(0,y.A)(g.$.md.max),G=(0,y.A)(g.$.lg.max),Z=(0,a.useRef)(null),D=(0,a.useRef)(null),F=(0,ne.m)().setToastNotification;(0,a.useEffect)((function(){if(Z.current&&T){var e,t="#".concat(CSS.escape(T.productCode)),r=null==Z||null===(e=Z.current)||void 0===e?void 0:e.querySelector(t);r&&(G?(_(!0),window.setTimeout((function(){r.scrollIntoView({behavior:"smooth",inline:"center"})}),600)):r.scrollIntoView({behavior:"smooth",block:"center"}))}}),[T,Z.current]),(0,a.useEffect)((function(){var t;C(!0),void 0!==(null===(t=D.current)||void 0===t?void 0:t.signal)&&D.current.abort(),D.current=new AbortController;var n=function(){var t,n=(t=ae().m((function t(){var n,a;return ae().w((function(t){for(;;)switch(t.p=t.n){case 0:if(t.p=0,!r){t.n=2;break}return t.n=1,(0,re._3)(r,null===(n=D.current)||void 0===n?void 0:n.signal);case 1:(a=t.v)&&(H(a.name),k(a.hotspots),P(a.svg)),C(!1);case 2:t.n=4;break;case 3:t.p=3,"AbortError"!==t.v.name&&F({message:e("spare.parts.fetch.drawing.error"),type:i.V.ERROR}),C(!1);case 4:return t.a(2)}}),t,null,[[0,3]])})),function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function i(e){ie(o,n,a,i,l,"next",e)}function l(e){ie(o,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return n.apply(this,arguments)}}();n(),r&&window.setTimeout((function(){var e=new URL(window.location.href);e.searchParams.set(l.SPARE_PARTS_ID_QUERY_PARAM,r),window.history.pushState({},"",e.toString())}),1e3)}),[r]);var U=function(){s(null),P(null),k([]),p([]),m([]);var e=new URL(window.location.href);e.searchParams.delete(l.SPARE_PARTS_ID_QUERY_PARAM),window.history.pushState({},"",e.toString())},z=h()({"spare-parts-overlay__product-list-container":!0,"spare-parts-overlay__product-list--open":b});return a.createElement(n.Ay,{type:B?n.P8.FROM_BOTTOM:n.P8.FROM_RIGHT,id:n.aG.SPARE_PARTS,onClose:U},a.createElement("div",{className:"c-spare-parts-overlay"},a.createElement(M,{onClose:U}),a.createElement("div",{className:"spare-parts-overlay__container"},a.createElement("div",{className:"spare-parts-overlay__drawing-container"},V&&a.createElement("h2",{className:"spare-parts-overlay__title"},V),a.createElement(u.GT,{initialScale:1,maxScale:10},a.createElement(d,{setSelectedHotSpot:L,hotspots:x,drawing:N,loading:S}),a.createElement(O,null))),a.createElement("div",{className:z},a.createElement(o.A,{className:"spare-parts-overlay__product-list--toggle",onClick:function(){return _(!b)}},"Onderdelenlijst"," ",(null==x?void 0:x.length)&&a.createElement("span",{className:"spare-parts-overlay__product-list--number"},"(".concat(x.length,")")),a.createElement(c.A,{className:"main-navigation-mobile-footer__collapse-icon",src:se})),a.createElement("div",{className:"spare-parts-overlay__product-list",ref:Z},a.createElement(te,{hotspots:x,selectedHotSpot:T}))))))}},49415:(e,t,r)=>{r.d(t,{A:()=>E});r(52675),r(89463),r(23792),r(62062),r(34782),r(26099),r(3362),r(27495),r(38781),r(62953);var n=r(96540),a=r(61019),o=r(10585),i=r(79330),l=r(32218),c=r(22022);const s=function(e){var t=e.thumbnail,r=(0,c.Bd)().t,s=(0,i.N)().setActiveOverlay,u=(0,l.h)().setSparePartsId;return n.createElement(a.A,{className:"thumbnail__item",onClick:function(){u(t.id),s({id:o.aG.SPARE_PARTS,isInline:!0})}},n.createElement("img",{src:t.thumbNailImage,alt:t.name,className:"thumbnail__image"}),n.createElement("div",{className:"thumbnail__item-description-container"},t.name&&n.createElement("div",{title:t.name,className:"thumbnail__item-description"},t.name),t.nrOfSpareParts&&n.createElement("div",{className:"thumbnail__item-description-amount"},r("spare.parts.number.of.spare.parts",{numberOfSpareParts:t.nrOfSpareParts}))))};var u=r(52549),f=r(19309),p=r(59711),d=r(47491),m=r(70255),v=r(83389),h=r(15309);function g(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function o(r,n,a,o){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return y(s,"_invoke",function(r,n,a){var o,l,c,s=0,u=a||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,l=0,c=e,p.n=r,i}};function d(r,n){for(l=r,c=n,t=0;!f&&s&&!a&&t<u.length;t++){var a,o=u[t],d=p.p,m=o[2];r>3?(a=m===n)&&(c=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=d&&((a=r<2&&d<o[1])?(l=0,p.v=n,p.n=o[1]):d<m&&(a=r<3||o[0]>n||n>m)&&(o[4]=r,o[5]=n,p.n=m,l=0))}if(a||r>1)return i;throw f=!0,n}return function(a,u,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,m),l=u,c=m;(t=l<2?e:c)||!f;){o||(l?l<3?(l>1&&(p.n=-1),d(l,c)):p.n=c:p.v=c);try{if(s=2,o){if(l||(a="next"),t=o[a]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(t){o=e,l=1,c=t}finally{s=1}}return{value:t,done:f}}}(r,a,o),!0),s}var i={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(y(t={},n,(function(){return this})),t),f=s.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,y(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=s,y(f,"constructor",s),y(s,"constructor",c),c.displayName="GeneratorFunction",y(s,a,"GeneratorFunction"),y(f),y(f,a,"Generator"),y(f,n,(function(){return this})),y(f,"toString",(function(){return"[object Generator]"})),(g=function(){return{w:o,m:p}})()}function y(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}y=function(e,t,r,n){function o(t,r){y(e,t,(function(e){return this._invoke(t,r,e)}))}t?a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},y(e,t,r,n)}function b(e,t,r,n,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,a)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const E=function(e){var t=e.isPDP,r=(0,c.Bd)().t,a=(0,l.h)(),o=a.thumbnails,i=a.setThumbnails,y=a.productC
1ode,_=w((0,n.useState)(!1),2),E=_[0],S=_[1],C=w((0,n.useState)(!1),2),A=C[0],N=C[1],O=(0,h.m)().setToastNotification;return(0,n.useEffect)((function(){S(!0);var e=function(){var e,t=(e=g().m((function e(){var t;return g().w((function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,!y){e.n=2;break}return e.n=1,(0,v.yP)(y);case 1:t=e.v,i(t),S(!1);case 2:e.n=4;break;case 3:e.p=3,e.v,S(!1),N(!0),O({message:r("spare.parts.fetch.drawing.error"),type:d.V.ERROR});case 4:return e.a(2)}}),e,null,[[0,3]])})),function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){b(o,n,a,i,l,"next",e)}function l(e){b(o,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();e()}),[y]),A?null:n.createElement("div",{id:"sparePartsThumbnails",className:"c-spare-parts-thumbnails"},n.createElement("h2",{className:"spare-parts-thumbnails__title"},r("spare.parts.thumbnails.title")),n.createElement(p.default,{options:{freeMode:!1,pagination:{el:".c-carousel__pagination",clickable:!0,type:"progressbar"},navigation:{nextEl:".c-carousel__button-next",prevEl:".c-carousel__button-prev"},breakpoints:{0:{slidesPerView:2},[u._[f.Rp.sm]]:{slidesPerView:3},[u._[f.Rp.lg]]:{slidesPerView:4},[u._[f.Rp.xl]]:{slidesPerView:t?4:6}}}},E?Array.from({length:5},(function(e,t){return n.createElement(m.A,{key:t,height:232})})):null!=o&&o.length?o.map((function(e){return n.createElement(s,{key:e.id,thumbnail:e})})):r("spare.parts.thumbnails.no.results")))}},55352:(e,t,r)=>{r.r(t),r.d(t,{SPARE_PARTS_ID_QUERY_PARAM:()=>ie,default:()=>le});r(23792),r(26099),r(62953),r(3296),r(27208),r(48408);var n=r(60798),a=r(6958),o=r(96540),i=r(22539),l=r(10585),c=r(10838),s=r(87463),u=r(47309),f=(r(52675),r(89463),r(28706),r(74423),r(34782),r(5506),r(3362),r(27495),r(38781),r(21699),r(5746),r(23500),r(62062),r(55494)),p=r(46942),d=r.n(p),m=r(22022);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var g='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="12" cy="12" r="12" fill="#CCCCCC"/>\n<path d="M7.745 10.415L10.8 13.488L16.255 8L18 9.756L10.8 17L6 12.17L7.745 10.415Z" fill="white"/>\n</svg>\n';const y=function(e){var t=e.selectData,r=v((0,o.useState)(!1),2),n=r[0],a=r[1],i=(0,m.Bd)().t,l=d()({"spare-part-progress__step":!0,"spare-part-progress__step--completed":n}),c=function(e){return d()({"spare-part-progress__title":!0,"spare-part-progress__title--highlight":(null==e?void 0:e.isOpen)||(null==e?void 0:e.highlight),"spare-part-progress__title--completed":t[t.length-1].active})},s=d()({"spare-part-progress__indicator":!0,"spare-part-progress__indicator--completed":n});return(0,o.useEffect)((function(){a(null==t?void 0:t.every((function(e){return e.active})))}),[t]),o.createElement(o.Fragment,null,o.createElement("div",{className:"spare-part-progress__step spare-part-progress__step--completed"},o.createElement("span",{className:"spare-part-progress__indicator spare-part-progress__indicator--completed"},"1",o.createElement(f.A,{className:"spare-part-progress__indicator-icon",src:g})),o.createElement("div",{className:"spare-part-progress__title-container"},o.createElement("span",{className:"spare-part-progress__label"},i("select"),":"),o.createElement("span",{className:"spare-part-progress__title spare-part-progress__title--completed"},i("product.type")))),o.createElement("div",{className:l},o.createElement("span",{className:s},"2",n?o.createElement(f.A,{className:"spare-part-progress__indicator-icon",src:g}):null),o.createElement("div",{className:"spare-part-progress__title-container"},o.createElement("span",{className:"spare-part-progress__label"},i("select"),":"),t.map((function(e){return o.createElement("span",{key:e.label,className:c(e)},"Type"===e.label?"en ".concat(e.label.toLowerCase()):"Merk"===e.label?"".concat(e.label.toLowerCase(),","):e.label.toLowerCase())})))))};var b=r(97907),w=r(61019),_=(r(45700),r(2008),r(89572),r(53921),r(81278),r(60739),r(71055)),E=r(76630),S=r(9994),C=r(85347),A=r(32218);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}
1finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const P=function(e){var t=e.onSelect,r=e.selectData,n=e.index,a=e.onToggle,i=e.currentSelected,l=L[r.attribute],c=(0,E.b)({attribute:r.attribute,limit:500}),s=c.items,u=c.refine,f=N((0,o.useState)([]),2),p=f[0],d=f[1],m=N((0,o.useState)([]),2),v=m[0],h=m[1],g=N((0,o.useState)(!0),2),y=g[0],b=g[1],w=N((0,o.useState)(!1),2),O=w[0],P=w[1],j=(0,A.h)(),x=j.setMultipleProductsResult,k=j.allFiltersSelected,I=(0,S.u)().items,T=function(e){return null==e?void 0:e.map((function(e){return{displayValue:e.label,value:e.label,selected:e.isRefined}}))};return(0,o.useEffect)((function(){r.selected&&i!==r.selected&&u(r.selected)}),[r]),(0,o.useEffect)((function(){r.isImmutable&&0===v.length&&h(s)}),[s,v]),(0,o.useEffect)((function(){if(I.length&&s.length){var e=s.filter((function(e){return e.label===r.selected})).filter((function(e){return e.count>1}));if(k&&e.length>=1){var t=I.filter((function(t){return t.name===e[0].label}));x(t.length>1?t:[])}else x([])}}),[s,k,I,r.selected]),(0,o.useEffect)((function(){r.storeOptionsInLocalStorage&&s.length&&O&&((0,_.set)(L[r.attribute],JSON.stringify(s)),P(!1))}),[s]),(0,o.useEffect)((function(){r.isImmutable||h([])}),[r.isImmutable]),(0,o.useEffect)((function(){var e=(0,_.get)(l),t=JSON.parse(e);y&&t?d(T(t)):(d(T(v.length?v:s)),b(!1))}),[s,v,y]),(0,o.useEffect)((function(){r.clearSelection&&((0,_.remove)(l),u(""))}),[r]),o.createElement(C.A,{selected:r.selected?{displayValue:r.selected,value:r.selected,selected:!0}:void 0,onToggle:a,label:r.label,options:p,onSelect:function(e){x([]),t&&t({selectedIndex:n,option:e}),P(!0)},disabled:r.disabled,clearSelected:r.clearSelection,close:r.disabled||r.clearSelection,highlight:r.highlight})};function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var M=[{label:"Merk",attribute:"brand",disabled:!1,clearSelection:!1,isImmutable:!0,selected:null,storeOptionsInLocalStorage:!1,active:!1,isOpen:!1,highlight:!0},{label:"Serie",attribute:"subBrand",disabled:!0,clearSelection:!1,isImmutable:!1,selected:null,storeOptionsInLocalStorage:!0,active:!1,isOpen:!1,highlight:!1},{label:"Type",attribute:"name",disabled:!0,clearSelection:!1,isImmutable:!1,selected:null,storeOptionsInLocalStorage:!0,active:!1,isOpen:!1,highlight:!1}],L=Object.fromEntries(M.map((function(e){return[e.attribute,"PliegerFilterItems_".concat(e.attribute)]})));const R=function(e){var t,r=e.activeCategory,a=e.clearRefinement,i=I((0,o.useState)(M),2),l=i[0],c=i[1],s=(0,n.J)().indexUiState,u=(0,A.h)(),p=u.setShowProducts,d=u.setAllFiltersSelected,v=I((0,o.useState)(),2),h=v[0],g=v[1],b=(0,m.Bd)().t;(0,o.useEffect)((function(){var e=l.map((function(e,t){if(null==s||!s.menu)return e;var r=Object.keys(null==s?void 0:s.menu).length;return null!=s&&s.menu[e.attribute]?x(x({},e),{},{selected:null==s?void 0:s.menu[e.attribute],disabled:!1,active:Boolean(null==s?void 0:s.menu[e.attribute]),highlight:!Boolean(null==s?void 0:s.menu[e.attribute])}):x(x({},e),{},{disabled:t!==r,highlight:t-1!==r})}));c(e)}),[]),(0,o.useEffect)((function(){var e=null==l?void 0:l.every((function(e){return e.active}));p(e),d(e)}),[l]);var E=function(e){var t=e.selectedIndex,r=e.option,n=l.map((function(e,n){return x(x({},e),{},n===t?{active:!0,selected:r,highlight:!1}:n===t+1?{disabled:!1,selected:null,clearSelection:!0,active:!1,isImmutable:!1,highlight:!0}:n<=t?{disabled:!1,selected:null,clearSelection:!1,isImmutable:!0,active:!0,highlight:!1}:{disabled:!0,selected:null,clearSelection:!0,active:!1,isImmutable:!1,highlight:!1})}));c(n)},S=function(e){var t=e.label,r=e.selectedOption;g(null==r?void 0:r.value);var n=l.map((function(e){return e.label===t?x(x({},e),{},{isOpen:!e.isOpen,clearSelection:!1,highlight:!1}):e}));c(n)};return o.createElement(o.Fragment,null,o.createElement("div",{className:"c-spare-parts-filter",id:"spare-parts-filter-anchor"},o.createElement(y,{selectData:l}),o.createElement(w.A,{className:"spare-parts-filter__selected",onClick:function(){Object.entries(L).forEach((function(e){var t=I(e,2)[1];return(0,_.remove)(t)})),a()}},o.createElement("img",{className:"spare-parts-filter__selected__image",src:null==r||null===(t=r.image)||void 0===t?void 0:t.url}),o.createElement("div",{className:"spare-parts-filter__selected_content"},o.createElement("span",{className:"spare-parts-filter__selected__label"},b("product.type.with.capital")),o.createElement("span",{className:"spare-parts-filter__selected__value"},null==r?void 0:r.name)),o.createElement("div",{className:"spare-parts-filter__selected__reset"},o.createElement(f.A,{className:"spare-parts-filter__selected__icon",src:'<svg preserveAspectRatio="none" viewBox="0 0 19 19" xmlns="http://www.w3.org/2000/svg">\n  <g>\n    <path d="M2.828 0l16.264 16.264-2.829 2.828L0 2.829z"/>\n    <path d="M19.092 2.828L2.828 19.092 0 16.263 16.263 0z"/>\n  </g>\n</svg>'}))),l.map((function(e,t){return o.createElement("div",{key:e.attribute},o.createElement(P,{index:t,onSelect:E,selectData:e,onToggle:S,currentSelected:h,filtersCompleted:l.every((function(e){return e.active}))}))}))))};var V=r(42425),H=r(14658);const B=function(e){var t=e.filters;return(0,H._)({filters:t}),null};var G=r(47491),Z=r(52549),D=r(19309),F=r(59711),U=r(36819);const z=function(e){var t=e.products,r=(0,A.h)(),n=r.setShowProducts,a=r.setProductCode,i=r.productCode,l=r.setShowCmsContent,c=new URLSearchParams(window.location.search).get("productCode");c&&(n(!0),a(c));return o.createElement("div",{className:"c-spare-parts-product-filter"},o.createElement(F.default,{options:{freeMode:!1,pagination:{el:".c-carousel__pagination",clickable:!0,type:"progressbar"},navigation:{nextEl:".c-carousel__button-next",prevEl:".c-carousel__button-prev"},breakpoints:{0:{slidesPerView:2},[Z._[D.Rp.sm]]:{slidesPerView:3},[Z._[D.Rp.lg]]:{slidesPerView:6},[Z._[D.Rp.xl]]:{slidesPerView:7}}}},t.map((function(e){return o.createElement(w.A,{className:(t=e.code,d()({"spare-parts-product-filter__product":!0,"spare-parts-product-filter__product--active":t===i,"spare-parts-product-filter__product--disabled":i&&t!==i})),onClick:function(){return function(e){var t=new URLSearchParams(window.location.search);
1t.set("productCode",e.code),window.history.pushState({},"","".concat(window.location.pathname,"?").concat(t.toString())),n(!0),a(e.code),l(!1),setTimeout((function(){var e=document.querySelector("#sparePartsThumbnails");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}),300)}(e)}},o.createElement("div",{className:"spare-parts-product-filter-product-image__container"},o.createElement("img",{src:null==e?void 0:e.picture,alt:e.name,className:"spare-parts-product-filter-product-image"})),o.createElement("div",{className:"spare-parts-product-filter-description-container"},o.createElement("p",{className:"spare-parts-product-filter-product-title"},e.name),o.createElement("p",{className:"spare-parts-product-filter-product-description"},(0,U.lF)([(null==e?void 0:e.measurementDescription)||"",(null==e?void 0:e.descriptionAdditional)||"",null!=e&&e.descriptionColor?e.descriptionColor.charAt(0).toUpperCase()+e.descriptionColor.slice(1):""]," | "))));var t}))))};var $=r(83389),W=r(57338),q=r(23489),J=r(49045),X=r(15309);function Y(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function o(r,n,a,o){var c=n&&n.prototype instanceof l?n:l,s=Object.create(c.prototype);return Q(s,"_invoke",function(r,n,a){var o,l,c,s=0,u=a||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,l=0,c=e,p.n=r,i}};function d(r,n){for(l=r,c=n,t=0;!f&&s&&!a&&t<u.length;t++){var a,o=u[t],d=p.p,m=o[2];r>3?(a=m===n)&&(c=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=d&&((a=r<2&&d<o[1])?(l=0,p.v=n,p.n=o[1]):d<m&&(a=r<3||o[0]>n||n>m)&&(o[4]=r,o[5]=n,p.n=m,l=0))}if(a||r>1)return i;throw f=!0,n}return function(a,u,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,m),l=u,c=m;(t=l<2?e:c)||!f;){o||(l?l<3?(l>1&&(p.n=-1),d(l,c)):p.n=c:p.v=c);try{if(s=2,o){if(l||(a="next"),t=o[a]){if(!(t=t.call(o,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),l<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==i)break}catch(t){o=e,l=1,c=t}finally{s=1}}return{value:t,done:f}}}(r,a,o),!0),s}var i={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Q(t={},n,(function(){return this})),t),f=s.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Q(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=s,Q(f,"constructor",s),Q(s,"constructor",c),c.displayName="GeneratorFunction",Q(s,a,"GeneratorFunction"),Q(f),Q(f,a,"Generator"),Q(f,n,(function(){return this})),Q(f,"toString",(function(){return"[object Generator]"})),(Y=function(){return{w:o,m:p}})()}function Q(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}Q=function(e,t,r,n){function o(t,r){Q(e,t,(function(e){return this._invoke(t,r,e)}))}t?a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},Q(e,t,r,n)}function K(e,t,r,n,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,a)}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const re=function(){var e=ee((0,o.useState)(null),2),t=e[0],r=e[1],a=(0,A.h)(),i=a.productC
1ode,l=a.setShowProducts,c=a.multipleProductsResult,s=a.allFiltersSelected,u=a.setShowCmsContent,p=(0,m.Bd)().t,v=(0,n.J)().indexUiState,h=ee((0,o.useState)(),2),g=h[0],y=h[1],E=ee((0,o.useState)(null),2),S=E[0],C=E[1],N=(0,b.X)().refine,O=(0,n.J)().refresh,P=(0,X.m)().setToastNotification,j=(0,J.A)(q.$.lg.max);(0,o.useEffect)((function(){var e=function(){var e,t=(e=Y().m((function e(){var t;return Y().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,(0,$.kn)();case 1:t=e.v,r(t),e.n=3;break;case 2:e.p=2,e.v,P({message:p("error.generic.get.message"),type:G.V.ERROR});case 3:return e.a(2)}}),e,null,[[0,2]])})),function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){K(o,n,a,i,l,"next",e)}function l(e){K(o,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return t.apply(this,arguments)}}();e(),"scrollRestoration"in history&&(history.scrollRestoration="manual")}),[]),(0,o.useEffect)((function(){var e=document.getElementById("sparePartsContainer");e&&S&&(e.style.minHeight="auto")}),[S]),(0,o.useEffect)((function(){if(t){var e,r=t.find((function(e){var t;return null===(t=v.configure)||void 0===t||null===(t=t.filters)||void 0===t?void 0:t.includes(null==e?void 0:e.code)}));if(r)y(null==v||null===(e=v.configure)||void 0===e?void 0:e.filters),C(r)}}),[t]);var x=function(){C(null),y("clearFilters:".concat(!0)),N(),O(),l(!1);var e=new URLSearchParams(window.location.search);e.delete("productCode"),window.history.pushState({},"","".concat(window.location.pathname,"?").concat(e.toString()))},k=d()({"spare-part-progress__step":!0,"spare-part-progress__step--completed":i}),I=d()({"spare-part-progress__indicator":!0,"spare-part-progress__indicator--completed":i});return(0,o.useEffect)((function(){u((null==c?void 0:c.length)&&s)}),[c,s]),o.createElement("div",{className:"c-spare-parts-select"},t&&t.length>0?o.createElement(o.Fragment,null,o.createElement(B,{filters:g}),null!=g&&g.includes("category")?o.createElement("div",{className:"c-spare-parts-filter-container"},o.createElement(R,{clearRefinement:x,activeCategory:S}),null!=c&&c.length&&s?o.createElement("div",{className:"u-margin-top--30"},o.createElement("div",{className:k},o.createElement("span",{className:I},"3",i&&o.createElement(f.A,{className:"spare-part-progress__indicator-icon",src:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="12" cy="12" r="12" fill="#CCCCCC"/>\n<path d="M7.745 10.415L10.8 13.488L16.255 8L18 9.756L10.8 17L6 12.17L7.745 10.415Z" fill="white"/>\n</svg>\n'})),o.createElement("div",{className:"spare-part-progress__title-container"},o.createElement("span",{className:"spare-part-progress__label"},p("select"),": ",p("product.variant")))),o.createElement(z,{products:c})):null,o.createElement(w.A,{className:"spare-parts-filter__clear-filters",onClick:function(){j&&window.scrollTo({top:0,behavior:W.nr?"auto":"smooth"}),Object.entries(L).forEach((function(e){var t=ee(e,2)[1];return(0,_.remove)(t)})),x()}},p("filters.clear.all"))):o.createElement(o.Fragment,null,o.createElement("div",{className:"spare-part-progress"},o.createElement("div",{className:"spare-part-progress__step spare-part-progress__step--in-progress"},o.createElement("span",{className:"spare-part-progress__indicator"},"1"),o.createElement("div",{className:"spare-part-progress__title-container"},o.createElement("span",{className:"spare-part-progress__label"},p("select"),":"),o.createElement("span",{className:"spare-part-progress__title spare-part-progress__title--completed"},p("product.type"))))),o.createElement(V.default,{onClick:function(e){y("category:".concat(e.code," AND hasSpareParts:",!0)),C(e)},linkTiles:t}))):null)};var ne=r(49415),ae=r(5398),oe=r(79330),ie="sparePartsId";const le=function(e){var t=e.facetMetaData,r=e.canCreateEndUserQuote,f=(0,S.u)().items,p=(0,m.Bd)().t,d=(0,A.h)(),v=d.showProducts,h=d.setSparePartsId,g=d.setProductCode,y=d.productC
1ode,b=d.showCmsContent,w=document.getElementById("react-managed"),_=(0,ae.fY)(),E=_.indexMain,C=_.searchClient,N=(0,oe.N)().setActiveOverlay,O=(0,n.J)().indexUiState;return(0,o.useEffect)((function(){w&&(w.style.display=b?"block":v&&!b?"none":"block")}),[w,v,b]),(0,o.useEffect)((function(){f.length&&(g(null),v&&1===f.length&&g(f[0].code))}),[f,v]),(0,o.useEffect)((function(){O.productCode&&g(O.productCode)}),[O]),(0,o.useEffect)((function(){var e=new URL(window.location.href).searchParams.get(ie);e&&(h(e),N({id:l.aG.SPARE_PARTS,isInline:!0}))}),[]),o.createElement(o.Fragment,null,o.createElement("div",{className:"c-spare-parts"},o.createElement(re,null),y?o.createElement("div",{className:"spare-parts_container"},o.createElement(ne.A,null),o.createElement("div",{className:"spare-parts_product-container",id:"pagination-scroll-anchor"},y&&o.createElement(a.G,{future:{preserveSharedStateOnUnmount:!0},searchClient:C,indexName:E},o.createElement("h2",{className:"spare-parts__title"},p("spare.parts.parts.title")),o.createElement("div",{id:"remove-filters",className:"col-xs-12"},o.createElement(s.default,{facetMetaData:t})),o.createElement("div",{className:"col-xs-12 col-lg-3"},o.createElement(i.default,{facetMetaData:t})),o.createElement("div",{className:"col-xs-12 col-lg-9"},o.createElement(c.default,{filter:"isSparePartOf:".concat(y),canCreateEndUserQuote:r}))))):null),o.createElement(u.A,null))}},59711:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});r(52675),r(89463),r(23792),r(62062),r(34782),r(26099),r(27495),r(38781),r(62953);var n=r(90150),a=r(96540),o=r(63325),i=r(55494),l=r(46942),c=r.n(l);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(null,arguments)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var p='<svg preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 14 24">\n  <defs>\n    <path id="arrowleft" d="M1.25 5L11 14.579 20.75 5 23 7.21 11 19-1 7.21z"/>\n  </defs>\n  <use transform="rotate(90 9 10)" xlink:href="#arrowleft"/>\n</svg>',d='<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 24"><title>24_arrow_right</title><path id="arrowleft" d="M0,21.75,9.58,12,0,2.25,2.21,0,14,12,2.21,24Z"/></svg>';function m(e){var t=e.options,r=void 0===t?{}:t,l=e.swiperClassName,f=e.slideClassName,m=e.carouselControlsClassName,v=void 0===m?"":m,h=e.children,g=e.slidesPerView,y=(0,a.createRef)(),b=u((0,a.useState)(),2),w=b[0],_=b[1],E=c()({"c-carousel":!0,["".concat(l)]:Boolean(l)}),S=c()({"c-carousel__controls":!0,["".concat(v)]:Boolean(v)}),C=c()({["".concat(f)]:Boolean(f)});return a.createElement("div",{ref:y,className:E},a.createElement(o.RC,s({modules:[n.Vx,n.dK],slidesPerView:g||"1",freeMode:!0,spaceBetween:16,watchOverflow:!0,pagination:{el:".c-carousel__pagination",clickable:!0,type:"progressbar"},navigation:{nextEl:".c-carousel__button-next",prevEl:".c-carousel__button-prev"}},r,{onSwiper:function(e){return _(e)}}),a.Children.map(h,(function(e){return a.createElement(o.qr,{className:C},e)})),a.createElement("div",{className:S},a.createElement("button",{className:"c-carousel__button-prev",onClick:function(){w.slidePrev()}},a.createElement(i.A,{className:"c-carousel__prev-icon",src:p})),a.createElement("div",{className:"c-carousel__pagination swiper-pagination"}),a.createElement("div",{className:"swiper-scrollbar"}),a.createElement("button",{className:"c-carousel__button-next",onClick:function(){w.slideNext()}},a.createElement(i.A,{className:"c-carousel__next-icon",src:d})))))}},72498:(e,t,r)=>{r.d(t,{U:()=>n});var n=function(e){return e.TILE="tile",e.IMAGE="image",e.BRAND="brand",e.FEATURED="featured",e.CONTACT="contact",e}({})},83389:(e,t,r)=>{r.d(t,{_3:()=>s,kn:()=>c,yP:()=>l});r(52675),r(89463),r(26099),r(3362);function n(){var e,t,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function l(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,u=Object.create(l.prototype);return a(u,"_invoke",function(r,n,a){var o,i,l,s=0,u=a||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return o=t,i=0,l=e,p.n=r,c}};function d(r,n){for(i=r,l=n,t=0;!f&&s&&!a&&t<u.length;t++){var a,o=u[t],d=p.p,m=o[2];r>3?(a=m===n)&&(l=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=e):o[0]<=d&&((a=r<2&&d<o[1])?(i=0,p.v=n,p.n=o[1]):d<m&&(a=r<3||o[0]>n||n>m)&&(o[4]=r,o[5]=n,p.n=m,i=0))}if(a||r>1)return c;throw f=!0,n}return function(a,u,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,m),i=u,l=m;(t=i<2?e:l)||!f;){o||(i?i<3?(i>1&&(p.n=-1),d(i,l)):p.n=l:p.v=l);try{if(s=2,o){if(i||(a="next"),t=o[a]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=o.return)&&t.call(o),i<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),i=1);o=e}else if((t=(f=p.n<0)?l:r.call(n,p))!==c)break}catch(t){o=e,i=1,l=t}finally{s=1}}return{value:t,done:f}}}(r,o,i),!0),u}var c={};function s(){}function u(){}function f(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(a(t={},o,(function(){return this})),t),d=f.prototype=s.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=f,a(d,"constructor",f),a(f,"constructor",u),u.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(d),a(d,i,"Generator"),a(d,o,(function(){return this})),a(d,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:l,m}})()}function a(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,r,n){function i(t,r){a(e,t,(function(e){return this._invoke(t,r,e)}))}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},a(e,t,r,n)}function o(e,t,r,n,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,a)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function l(e){o(i,n,a,l,c,"next",e)}function c(e){o(i,n,a,l,c,"throw",e)}l(void 0)}))}}var l=function(){var e=i(n().m((function e(t){var r,a;return n().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,window.fetch("/spareparts/thumbnails?code=".concat(t),{method:"GET",headers:{CSRFToken:window.ACC.config.CSRFToken}});case 1:if(!(r=e.v)){e.n=3;break}return e.n=2,r.json();case 2:a=e.v,e.n=4;break;case 3:a=null;case 4:return e.a(2,a)}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=i(n().m((function e(){var t,r;return n().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,window.fetch("/spareparts/categories");case 1:if(!(t=e.v)){e.n=3;break}return e.n=2,t.json();case 2:r=e.v,e.n=4;break;case 3:r=null;case 4:return e.a(2,r)}}),e)})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=i(n().m((function e(t,r){var a,o;return n().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,window.fetch("/spareparts/drawing?drawingId=".concat(t),{signal:r});case 1:if(!(a=e.v)){e.n=3;break}return e.n=2,a.json();case 2:o=e.v,e.n=4;break;case 3:o=null;case 4:return e.a(2,o)}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},87463:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});r(52675),r(89463),r(23792),r(34782),r(26099),r(27495),r(38781),r(62953);var n=r(96540),a=r(61019),o=r(10585),i=r(22072),l=r(55494),c=r(65142),s=r(79330);function u(){var e=(0,c.u)().setFilterSidebarOpen,t=(0,s.N)().setActiveOverlay;return n.createElement("div",{className:"c-product-overview-controls"},n.createElement(i.A,null),n.createElement("div",{className:"c-product-overview-controls__item c-product-overview-controls__item--filters"},n.createElement(a.A,{onClick:function(){e(!0),t({id:o.aG.SEARCH_FACETS,isInline:!0})}},n.createElement(l.A,{className:"c-product-overview-controls__filter-icon",src:'<svg width="24px" height="24px" preserveAspectRatio="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n    <defs>\n        <path d="M8.5 15c1.766776 0 3.295743 1.018184 4.032135 2.499788L24 17.5v3l-11.111725.000954C12.433194 22.504464 10.641247 24 8.5 24c-2.141247 0-3.933194-1.495536-4.388275-3.499046L0 20.5v-3l4.467865-.000212C5.204257 16.018184 6.733224 15 8.5 15zm0 3c-.828427 0-1.5.671573-1.5 1.5S7.671573 21 8.5 21s1.5-.671573 1.5-1.5S9.328427 18 8.5 18zm7-18c1.959296 0 3.626132 1.25217 4.24391 2.999913L24 3v3l-4.256445.001092C19.125492 7.74831 17.45892 9 15.5 9c-1.95892 0-3.625493-1.25169-4.243555-2.998908L0 6V3l11.25609-.000087C11.873867 1.25217 13.540703 0 15.5 0zm0 3c-.828427 0-1.5.671573-1.5 1.5S14.671573 6 15.5 6 17 5.328427 17 4.5 16.328427 3 15.5 3z" id="24-filter"/>\n    </defs>\n    <use xlink:href="#24-filter"/>\n</svg>'}))))}var f=r(8052),p=r(46942),d=r.n(p),m=r(23489),v=r(49045),h=r(41662);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}
1finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const b=function(e){var t=e.facetMetaData,r=g((0,n.useState)(!1),2),a=r[0],o=r[1],i=(0,v.A)(m.$.lg.max),l=(0,v.A)(m.$.lg.min),c=g((0,n.useState)(0),2),s=c[0],p=c[1],y=(0,h.J)().nbHits,b=d()({"c-product-overview-remove-filters":!0,"c-product-overview-remove-filters--sticky":a}),w=d()({"product-overview-remove-filters__container":!0,"wrapper container-fluid":a&&l});return(0,n.useEffect)((function(){var e=function(){var e=window.scrollY,t=document.getElementById("remove-filters");t&&(e>=t.getBoundingClientRect().bottom+e-(i?80:90)?o(!0):(p(t.offsetHeight),o(!1)))};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}}),[]),y?n.createElement(n.Fragment,null,n.createElement("div",{className:b},n.createElement("div",{className:w},n.createElement(f.A,{isSticky:a,facetMetaData:t}),n.createElement(u,null))),a?n.createElement("div",{style:{height:s},className:"product-overview-remove-filters__placeholder"}):null):null}}}]);

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.