PageSourceSearch

https://www.eselo.lv/static/frontend/scandipwa/theme/en_US/Magento…/widget-recently-viewed.a7bdf0c8.chunk.js

js eselo.lv collected 2026-10-06 16:15:52 UTC 5,579 bytes, 1 lines download raw bytes

1(this.webpackJsonpscandipwa=this.webpackJsonpscandipwa||[]).push([[33],{1108:function(e,t,n){"use strict";(function(e,r){var i=n(3),c=n(6),a=n(4),s=n(5),o=n(0),u=n(12),d=n(1200),l=(n(62),n(1202)),p=e.middleware((function(e){return{recentProducts:e.RecentlyViewedProductsReducer.recentlyViewedProducts,shouldBeUpdated:e.RecentlyViewedProductsReducer.shouldBeUpdated,store:e.ConfigReducer.code}}),"Component/RecentlyViewedWidget/Container/mapStateToProps"),b=e.middleware((function(e){return{updateRecentViewedProductsInfo:function(t){return d.a.handleData(e,t)}}}),"Component/RecentlyViewedWidget/Container/mapDispatchToProps"),f=n(11).checkBEMProps,v=e.middleware(function(e){Object(a.a)(n,e);var t=Object(s.a)(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,c=new Array(r),a=0;a<r;a++)c[a]=arguments[a];return(e=t.call.apply(t,[this].concat(c))).state={siblingsHaveBrands:!1,siblingsHavePriceBadge:!1,siblingsHaveTierPrice:!1,siblingsHaveConfigurableOptions:!1},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldBeUpdated,n=e.updateRecentViewedProductsInfo,r=e.recentProducts,i=e.store;t&&0!==Object.entries(r).length&&n({recentProducts:r,store:i})}},{key:"containerProps",value:function(){var e,t=this,n=this.state,r=n.siblingsHaveBrands,i=n.siblingsHavePriceBadge,c=n.siblingsHaveTierPrice,a=n.siblingsHaveConfigurableOptions,s=this.props,o=s.store;return{productCardFunctions:{setSiblingsHaveBrands:function(){return t.setState({siblingsHaveBrands:!0})},setSiblingsHavePriceBadge:function(){return t.setState({siblingsHavePriceBadge:!0})},setSiblingsHaveTierPrice:function(){return t.setState({siblingsHaveTierPrice:!0})},setSiblingsHaveConfigurableOptions:function(){return t.setState({siblingsHaveConfigurableOptions:!0})}},productCardProps:{siblingsHaveBrands:r,siblingsHavePriceBadge:i,siblingsHaveTierPrice:c,siblingsHaveConfigurableOptions:a},products:null!==(e=s.recentProducts[o])&&void 0!==e?e:[]}}},{key:"render",value:function(){return f(r,l.a,Object.assign({},this.props,this.containerProps()))}}]),n}(e.Extensible(o.PureComponent)),"Component/RecentlyViewedWidget/Container");t.a=Object(u.b)(p,b)(v)}).call(this,n(7).default,n(0))},1200:function(e,t,n){"use strict";(function(e){var r=n(21),i=n.n(r),c=n(33),a=n(3),s=n(6),o=n(4),u=n(5),d=n(289),l=n(1201),p=n(294),b=n(73),f=n(288),v=e.middleware(function(e){Object(o.a)(n,e);var t=Object(u.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"onSuccess",value:function(){var e=Object(c.a)(i.a.mark((function e(t,n){var r,c,a,s;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.products.items,c=Object(p.b)().getState(),a=c.ConfigReducer.code,!Object(b.e)()){e.next=7;break}return e.next=6,Object(f.a)(r);case 6:s=e.sent;case 7:n(Object(d.d)(s||r,a));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(e.Extensible(l.a)),"Scandipwa/Store/RecentlyViewedProducts/Dispatcher/RecentlyViewedProductsDispatcher");t.a=new v}).call(this,n(7).default)},1201:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return g}));var i=n(10),c=n(3),a=n(6),s=n(19),o=n(17),u=n(4),d=n(5),l=n(90),p=n(29),b=n(289),f=n(24),v=n(65),g=e.middleware(function(e){Object(u.a)(n,e);var t=Object(d.a)(n);function n(){return Object(c.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"__construct",value:function(){Object(s.a)(Object(o.a)(n.prototype),"__construct",this).call(this,"recentlyViewedProducts")}},{key:"onSuccess",value:function(e,t){var n=e.products.items,r=Object(v.a)().getState().ConfigReducer.code;t(Object(b.d)(n,r))}},{key:"onError",value:function(e,t){t(Object(p.d)("error",r("Error fetching Recently Viewed Products Information!"),e))}},{key:"prepareRequest",value:function(e){var t=e.recentProducts[e.store].reduce((function(e,t){var n=t.sku;return[].concat(Object(i.a)(e),["".concat(n.replace(/ /g,"%20"))])}),[]);return[l.b.getQuery({args:{filter:{productsSkuArray:t}},notRequireInfo:!0})]}}]),n}(e.Extensible(f.a)),"Store/RecentlyViewedProducts/Dispatcher");
1new g}).call(this,n(7).default,n(16).default)},1202:function(e,t,n){"use strict";(function(e,r,i){var c,a,s=n(3),o=n(6),u=n(8),d=n(4),l=n(5),p=n(0),b=n.n(p),f=n(79),v=(n(62),n(1203),n(11).checkBEMProps),g=e.middleware((a=c=function(e){Object(d.a)(n,e);var t=Object(l.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c<r;c++)i[c]=arguments[c];return(e=t.call.apply(t,[this].concat(i))).renderProductCard=e.renderProductCard.bind(Object(u.a)(e)),e}return Object(o.a)(n,[{key:"renderProducts",value:function(e){var t=this,n=this.props.pageSize;return v(b.a,"ul",{block:"RecentlyViewedWidget",elem:"Page"},e.slice(0,n).map((function(e){return t.renderProductCard(e)})))}},{key:"renderProductCard",value:function(e){var t=this.props,n=t.productCardProps,r=t.productCardFunctions,i=t.shouldBeUpdated,c=e.id,a=e.selectedFilters;return v(b.a,f.a,Object.assign({selectedFilters:a,product:e,key:c,isPreview:i},n,r))}},{key:"render",value:function(){var e=this.props.products,t=void 0===e?[]:e;return t.length?v(b.a,"div",{block:"RecentlyViewedWidget"},v(b.a,"h2",null,i("Recently Viewed Products")),this.renderProducts(t)):null}}]),n}(e.Extensible(r)),c.defaultProps={pageSize:6},a),"Component/RecentlyViewedWidget/Component");t.a=g}).call(this,n(7).default,n(0).PureComponent,n(16).default)},1203:function(e,t,n){},754:function(e,t,n){"use strict";n.r(t);var r=n(1108);n.d(t,"default",(function(){return r.a}))}}]);

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.