PageSourceSearch

https://www.wijnkring.nl/static/frontend/scandipwa/pwasaas1/en_US/…/js/widget-new-product.4a042fa4.chunk.js

js wijnkring.nl collected 2026-09-27 01:31:04 UTC 5,215 bytes, 2 lines download raw bytes

1(this.webpackJsonpwijnkring=this.webpackJsonpwijnkring||[]).push([[49],{2040:function(e,t,r){"use strict";(function(e,n,i){var s,a=r(1),o=r(2),c=r(6),u=r(7),d=r(3),l=r(15),p=r(143),g=r(29),b=r(21),f=r(13),v=r(32),P=r(2130),h=e.middleware((function(e){return{timezone:e.ConfigReducer.timezone}}),"Component/NewProducts/Container/mapStateToProps"),m=e.middleware((function(e){return{showNotification:function(t,r,n){return e(Object(g.d)(t,r,n))}}}),"Component/NewProducts/Container/mapDispatchToProps"),C=r(11).checkBEMProps,H=e.middleware((s=function(t){Object(c.a)(s,t);var r=Object(u.a)(s);function s(){var e;Object(a.a)(this,s);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).state={products:void 0,siblingsHaveBrands:!1,siblingsHavePriceBadge:!1,siblingsHaveTierPrice:!1,siblingsHaveConfigurableOptions:!1},e}return Object(o.a)(s,[{key:"componentDidMount",value:function(){this.requestProducts()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.category,n=t.productsCount,i=t.cacheLifetime,s=t.timezone,a=e.category,o=e.productsCount,c=e.cacheLifetime,u=e.timezone;r===a&&s===u&&n===o&&i===c||this.requestProducts()}},{key:"containerProps",value:function(){var e=this,t=this.props.productsPerPage,r=this.state,n=r.products;return{productsPerPage:t,products:n,productCardFunctions:{products:n,productsPerPage:t,setSiblingsHaveBrands:function(){return e.setState({siblingsHaveBrands:!0})},setSiblingsHavePriceBadge:function(){return e.setState({siblingsHavePriceBadge:!0})},setSiblingsHaveTierPrice:function(){return e.setState({siblingsHaveTierPrice:!0})},setSiblingsHaveConfigurableOptions:function(){return e.setState({siblingsHaveConfigurableOptions:!0})}},productCardProps:{siblingsHaveBrands:r.siblingsHaveBrands,siblingsHavePriceBadge:r.siblingsHavePriceBadge,siblingsHaveTierPrice:r.siblingsHaveTierPrice,siblingsHaveConfigurableOptions:r.siblingsHaveConfigurableOptions}}}},{key:"getRequestDate",value:function(){var e=this.props,t=e.cacheLifetime,r=e.timezone,n=new Date,i=new Date(n.toLocaleString("en",{timeZone:r})).getTime();return new Date(i-i%(1e3*t)).toISOString().slice(0,10)}},{key:"requestProducts",value:function(){var t=this,r=this.props,i=r.timezone,s=r.category,a=r.productsCount,o=r.cacheLifetime,c=r.showNotification;if(i){var u={args:{filter:{categoryUrlPath:s,newToDate:this.getRequestDate()},currentPage:1,pageSize:a}},d=[p.b.getQuery(u)];Object(v.c)(Object(f.d)(d),"NewProducts",o).then(e.middleware((function(e){var r=e.products.items;return t.setState({products:Object(b.m)(r)})}),"Component/NewProducts/Container/executeGetThen")).catch(e.middleware((function(e){return c("error",n("Error fetching NewProducts!"),e)}),"Component/NewProducts/Container/executeGetThenCatch"))}}},{key:"render",value:function(){return C(i,P.a,this.containerProps())}}]),s}(e.Extensible(d.PureComponent)),s.defaultProps={category:"",productsCount:10,cacheLifetime:86400,productsPerPage:6},s),"Component/NewProducts/Container");t.a=Object(l.b)(h,m)(H)}).call(this,r(9).default,r(16).default,r(3))},2130:function(e,t,r){"use strict";(function(e,n,i){var s,a=r(1),o=r(2),c=r(12),u=r(6),d=r(7),l=r(3),p=r(179),g=(r(39),r(62)),b=(r(1724),r(11).checkBEMProps),f=e.middleware((s=function(e){Object(u.a)(r,e);var t=Object(d.a)(r);function r(){var e;Object(a.a)(this,r);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).newProductsRef=Object(l.createRef)(),e.renderProductCard=e.renderProductCard.bind(Object(c.a)(e)),e}return Object(o.a)(r,[{key:"componentDidMount",value:function(){this.setStyles()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,r=t.products,n=t.productsPerPage,i=e.products,s=e.productsPerPage;return r!==i||n!==s}},{key:"componentDidUpdate",value:function(){this.setStyles()}},{key:"setStyles",value:function(){var e=this.props.productsPerPage;g.a.setVariable(this.newProductsRef,"new-products-per-page-count",e)}},{key:"renderProductCard",value:function(e,t){var r=this.props,i=r.productCardProps,s=i.siblingsHaveBrands,a=i.siblingsHavePriceBadge,o=i.siblingsHaveTierPrice,c=i.siblingsHaveConfigurableOptions,u=r.productCardFunctions,d=u.setSiblingsHaveBrands,l=u.setSiblingsHavePriceBadge,g=u.setSiblingsHaveTierPrice,f=u.setSiblingsHaveConfigurableOptions;return b(n,p.default,{key:e.id||t,product:e,siblingsHaveBrands:s,siblingsHavePriceBadge:a,siblingsHaveTierPrice
1:o,siblingsHaveConfigurableOptions:c,setSiblingsHaveBrands:d,setSiblingsHavePriceBadge:l,setSiblingsHaveTierPrice:g,setSiblingsHaveConfigurableOptions:f})}},{key:"render",value:function(){var e=this.props.products;return b(n,"section",{block:"NewProducts",ref:this.newProductsRef},b(n,"h2",null,i("New Products")),b(n,"ul",{block:"NewProducts",elem:"Products"},e.map(this.renderProductCard)))}}]),r}(e.Extensible(l.Component)),s.defaultProps={products:Array.from({length:4},(function(){return{}}))},s),"Component/NewProducts/Component");t.a=f}).call(this,r(9).default,r(3),r(16).default)},998:function(e,t,r){"use strict";r.r(t);var n=r(2040);r.d(t,"default",(function(){return n.a}))}}]);
2//# sourceMappingURL=widget-new-product.4a042fa4.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.