1"use strict";(self.webpackChunkpliegerstorefront=self.webpackChunkpliegerstorefront||[]).push([[6100],{31415:(e,t,r)=>{r(92405)},55531:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});r(52675),r(45700),r(2008),r(62062),r(89572),r(81278),r(26099),r(27495),r(25440),r(23500);var n=r(7955),o=r(96540),i=r(51400),c=r(7322),a=r(50948),u=r(32470);function l(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 s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(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 d(e){var t=e.products,r=e.listName,l=e.name,f=void 0===l?"":l,d=e.canCreateEndUserQuote,p=e.showPrice,m=e.uid,v=(0,c.J)().setQuoteCreateStatus,y=(0,u.dp)().appData,b=(0,a.A)(),g=b.fetchCarouselPrices,h=b.prices,w=(0,o.useMemo)((function(){return t.map((function(e){var t,r,n,o=null==h?void 0:h[e.code];return s(s({},e),{},{price:null!==(t=null==o?void 0:o.price)&&void 0!==t?t:e.price,priceRange:null!==(r=null==o?void 0:o.priceRange)&&void 0!==r?r:e.priceRange,volumeDiscounts:null!==(n=null==o?void 0:o.volumeDiscounts)&&void 0!==n?n:e.volumeDiscounts})}))}),[t,h]);return d&&v(d),(0,o.useEffect)((function(){p&&m&&!y.userIsLoggedIn&&g(m)}),[p,m,y.userIsLoggedIn]),o.createElement("div",{className:"c-product-slider u-background-color--grey-100 u-overflow--hidden"},o.createElement("div",{className:"wrapper container-fluid c-product-slider__grid-wrapper"},o.createElement("div",{className:"row"},o.createElement("div",{className:"product-slider__col-wrapper"},o.createElement(n.default,{asyncPrice:!0,asyncStockInfo:!0,listName:r||i.b.PRODUCT_SLIDER.replace("[name]",f),type:n.ProductGridTypes.CAROUSEL,products:w,overrideShowPrice:p&&!y.userIsLoggedIn})))))}},61885:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(55531),o=r(96540),i=(r(52675),r(89463),r(28706),r(23792),r(62062),r(34782),r(26099),r(3362),r(27495),r(38781),r(31415),r(62953),r(61142)),c=r(5398),a=r(33411);function u(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,l=Object.create(u.prototype);return s(l,"_invoke",function(r,n,o){var i,a,u,l=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,r){return i=t,a=0,u=e,d.n=r,c}};function p(r,n){for(a=r,u=n,t=0;!f&&l&&!o&&t<s.length;t++){var o,i=s[t],p=d.p,m=i[2];r>3?(o=m===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=r<2&&p<i[1])?(a=0,d.v=n,d.n=i[1]):p<m&&(o=r<3||i[0]>n||n>m)&&(i[4]=r,i[5]=n,d.n=m,a=0))}if(o||r>1)return c;throw f=!0,n}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,m),a=s,u=m;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(d.n=-1),p(a,u)):d.n=u:d.v=u);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?u:r.call(n,d))!==c)break}catch(t){i=e,a=1,u=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var c={};function a(){}function u(){}function f(){}t=Object.getPrototypeOf;
1var d=[][n]?t(t([][n]())):(s(t={},n,(function(){return this})),t),p=f.prototype=a.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=f,s(p,"constructor",f),s(f,"constructor",u),u.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(p),s(p,o,"Generator"),s(p,n,(function(){return this})),s(p,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m}})()}function s(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}s=function(e,t,r,n){function i(t,r){s(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))},s(e,t,r,n)}function f(e,t,r,n,o,i,c){try{var a=e[i](c),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function c(e){f(i,n,o,c,a,"next",e)}function a(e){f(i,n,o,c,a,"throw",e)}c(void 0)}))}}function p(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,o,i,c,a=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||m(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 m(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function v(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 y=r(51400);const b=function(e){var t=e.canCreateEndUserQuote,r=void 0===t||t,s=e.name,f=function(e){var t=p((0,o.useState)([]),2),r=t[0],n=t[1],s=p((0,o.useState)(null),2),f=s[0],m=s[1],v=p((0,o.useState)(),2),y=v[0],b=v[1],g=(0,c.fY)(),h=g.indexProd,w=g.prodAppId,O=g.recommendationAPIKey;try{var E=(0,a.w)(w,O).initRecommend();(0,o.useEffect)((function(){var t=function(){var t=d(l().m((function t(){return l().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,E.getRecommendations({requests:[{indexName:h,model:"trending-items",maxRecommendations:null!=e&&e.maxRecommendations?null==e?void 0:e.maxRecommendations:10,threshold:0}]}).then((function(e){var t=e.results.reduce((function(e,t){return e.concat(t.hits)}),[]);n(t)})).catch((function(e){console.error("Error fetching related products:",e),n([])}));case 1:return t.a(2)}}),t)})));return function(){return t.apply(this,arguments)}}();t()}),[]),(0,o.useEffect)((function(){r.length>0?b(u(new Set(r.map((function(e){return e.code}))))):m([])}),[r]),(0,o.useEffect)((function(){var e=function(){var e=d(l().m((function e(){var t,r,n;return l().w((function(e){for(;;)switch(e.n){case 0:if(!(n=y)){e.n=2;break}return e.n=1,(0,i._y)(y);case 1:n=e.v;case 2:r=(t=n)?JSON.parse(t).Producten:[],m(r.map((function(e){return null==e?void 0:e.target})));case 3:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();null!=y&&y.length&&e().catch((function(e){console.error("Error fetching products:",e)}))}),[y])}catch(e){console.error("Error initializing Algolia recommend client:",e)}return{trendingItems:f}}({maxRecommendations:e.maxRecommendations}),m=f.trendingItems;return o.createElement("div",{className:"c-trending-products u-background-color--grey-100 u-padding-bottom--40 u-padding-top--20"},m&&o.createElement(o.Fragment,null,o.createElement("div",{className:"wrapper container-fluid"},o.createElement("div",{className:"row"},o.createElement("div",{className:"col-xs-12"},o.createElement("h3",{className:"u-padding-bottom--20 c-heading--h3 u-margin--bottom--20"},s)))),o.createElement(n.default,{products:m,canCreateEndUserQuote:r,name:s,listName:y.b.TRENDING_PRODUCTS})))}},92405:(e,t,r)=>{r(16468)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(86938))}}]);
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.