PageSourceSearch

https://www.eselo.lv/static/frontend/scandipwa/theme/en_US/Magento_Theme/static/js/39.b46f209f.chunk.js

js eselo.lv collected 2026-10-06 16:15:14 UTC 67,857 bytes, 1 lines download raw bytes

1(this.webpackJsonpscandipwa=this.webpackJsonpscandipwa||[]).push([[39],{1022:function(e,t,r){"use strict";r.r(t);var n=r(1323);r.d(t,"default",(function(){return n.b}))},1024:function(e,t,r){"use strict";r.r(t);var n=r(2231);t.default=n.a},1074:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return S}));var a,o,c=r(13),u=r(1),s=r(3),l=r(6),d=r(8),p=r(4),f=r(5),h=r(2),g=r.n(h),b=r(12),v=r(327),y=r(90),m=r(174),C=r(29),O=r(30),P=r(64),k=(r(1188),e.middleware((function(e){return{updateNoMatch:m.c,showNotification:C.d}}),"Component/ProductListWidget/Container/mapDispatchToProps")),j=r(11).checkBEMProps,S=e.middleware((o=a=function(e){Object(p.a)(r,e);var t=Object(f.a)(r);function r(){var e;Object(s.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={pages:{},totalItems:0,totalPages:0,isLoading:!0},e.containerFunctions={requestProductList:e.requestProductList.bind(Object(d.a)(e)),updateLoadStatus:e.updateLoadStatus.bind(Object(d.a)(e)),getIsNewCategory:e.getIsNewCategory.bind(Object(d.a)(e))},e.onError=e.onError.bind(Object(d.a)(e)),e.appendPage=e.appendPage.bind(Object(d.a)(e)),e.updateProductListItems=e.updateProductListItems.bind(Object(d.a)(e)),e.dataModelName="ProductListWidget",e}return Object(l.a)(r,[{key:"onError",value:function(e){var t=this.props,r=t.showNotification,i=t.updateNoMatch;r("error",n("Error fetching Product List!"),e),i(!0)}},{key:"getIsNewCategory",value:function(){return!0}},{key:"appendPage",value:function(e){var t=this.props.showPager,r=this.state.pages,n=e.products,i=(n=void 0===n?{}:n).items,a=n.page_info,o=(a=void 0===a?{}:a).current_page;0!==t&&this.setState({pages:Object(u.a)(Object(u.a)({},r),{},Object(c.a)({},o,Object(O.l)(i)))})}},{key:"updateProductListItems",value:function(e){var t=this.props,r=t.productsCount,n=t.productsPerPage,i=e.products,a=(i=void 0===i?{}:i).items,o=i.total_count,u=i.page_info,s=(u=void 0===u?{}:u).current_page,l=Math.ceil(r/n);this.setState({isLoading:!1,totalItems:o,totalPages:l,pages:Object(c.a)({},s,Object(O.l)(a))})}},{key:"updateLoadStatus",value:function(e){this.setState({isLoading:e})}},{key:"requestProductList",value:function(e){var t=e.isNext;t||this.updateLoadStatus(!0),this.fetchData([y.b.getQuery(e)],t?this.appendPage:this.updateProductListItems,this.onError)}},{key:"adaptProps",value:function(){var e=this.props,t=e.showPager,r=e.productsCount,n=e.productsPerPage;return{filter:{conditions:e.conditionsEncoded},pageSize:t?n:r,isPaginationEnabled:!!t}}},{key:"render",value:function(){var e=this.adaptProps();return j(i,v.a,Object.assign({},this.props,this.state,e,this.containerFunctions,{isInfiniteLoaderEnabled:!1,numberOfPlaceholders:6,mix:{block:"ProductListWidget"},isWidget:!0}))}}]),r}(e.Extensible(P.a)),a.propTypes={showPager:g.a.number,productsCount:g.a.number,productsPerPage:g.a.number,conditionsEncoded:g.a.string,updateNoMatch:g.a.func.isRequired,showNotification:g.a.func.isRequired},a.defaultProps={showPager:0,productsCount:10,productsPerPage:5,conditionsEncoded:null},o),"Component/ProductListWidget/Container"),F=e.middleware((function(e){return{}}),"Component/ProductListWidget/Container/mapStateToProps");Object(b.b)(F,k)(S)}).call(this,r(7).default,r(16).default,r(0))},1075:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"c",(function(){return m})),r.d(t,"b",(function(){return C})),r.d(t,"a",(function(){return P}));var a,o,c=r(3),u=r(6),s=r(4),l=r(5),d=r(0),p=r(12),f=r(90),h=r(29),g=r(30),b=r(9),v=r(24),y=r(1189),m=e.middleware((function(e){return{timezone:e.ConfigReducer.timezone}}),"Component/NewProducts/Container/mapStateToProps"),C=e.middleware((function(e){return{showNotification:function(t,r,n){return e(Object(h.d)(t,r,n))}}}),"Component/NewProducts/Container/mapDispatchToProps"),O=r(11).checkBEMProps,P=e.middleware((o=a=function(t){Object(s.a)(a,t);var r=Object(l.a)(a);function a(){var e;Object(c.a)(this,a);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:!1,siblingsHaveConfigurableOptions:!1},e}return Object(u.a)(a,[{key:"componentDidMount",value:function(){this.requestProducts()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.category,n=t.productsCount,i=t.cacheLifetime,a=t.timezone,o=e.category,c=e.productsCount,u=e.cacheLifetime,s=e.timezone;r===o&&a===s&&n===c&&i===u||this.requestProducts()}},{key:"containerProps",value:function(){var e=this,t=this.state;return{productCardFunctions:{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:t.siblingsHaveBrands,siblingsHavePriceBadge:t.siblingsHavePriceBadge,siblingsHaveTierPrice:t.siblingsHaveTierPrice,siblingsHaveConfigurableOptions:t.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,a=r.category,o=r.productsCount,c=r.cacheLifetime,u=r.showNotification;if(i){var s={args:{filter:{categoryUrlPath:a,newToDate:this.getRequestDate()},currentPage:1,pageSize:o}},l=[f.b.getQuery(s)];Object(v.c)(Object(b.d)(l),"NewProducts",c).then(e.middleware((function(e){var r=e.products.items;return t.setState({products:Object(g.l)(r)})}),"Component/NewProducts/Container/executeGetThen")).catch(e.middleware((function(e){return u("error",n("Error fetching NewProducts!"),e)}),"Component/NewProducts/Container/executeGetThenCatch"))}}},{key:"render",value:function(){return O(i,y.a,Object.assign({},this.props,this.state,this.containerProps()))}}]),a}(e.Extensible(d.PureComponent)),a.defaultProps={category:"",productsCount:10,cacheLifetime:86400},o),"Component/NewProducts/Container");Object(p.b)(m,C)(P)}).call(this,r(7).default,r(16).default,r(0))},1108:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(6),o=r(4),c=r(5),u=r(0),s=r(12),l=r(1200),d=(r(62),r(1202)),p=e.middleware((function(e){return{recentProducts:e.RecentlyViewedProductsReducer.recentlyViewedProducts,shouldBeUpdated:e.RecentlyViewedProductsReducer.shouldBeUpdated,store:e.ConfigReducer.code}}),"Component/RecentlyViewedWidget/Container/mapStateToProps"),f=e.middleware((function(e){return{updateRecentViewedProductsInfo:function(t){return l.a.handleData(e,t)}}}),"Component/RecentlyViewedWidget/Container/mapDispatchToProps"),h=r(11).checkBEMProps,g=e.middleware(function(e){Object(o.a)(r,e);var t=Object(c.a)(r);function r(){var e;Object(i.a)(this,r);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).state={siblingsHaveBrands:!1,siblingsHavePriceBadge:!1,siblingsHaveTierPrice:!1,siblingsHaveConfigurableOptions:!1},e}return Object(a.a)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldBeUpdated,r=e.updateRecentViewedProductsInfo,n=e.recentProducts,i=e.store;t&&0!==Object.entries(n).length&&r({recentProducts:n,store:i})}},{key:"containerProps",value:function(){var e,t=this,r=this.state,n=r.siblingsHaveBrands,i=r.siblingsHavePriceBadge,a=r.siblingsHaveTierPrice,o=r.siblingsHaveConfigurableOptions,c=this.props,u=c.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:n,siblingsHavePriceBadge:i,siblingsHaveTierPrice:a,siblingsHaveConfigurableOptions:o},products:null!==(e=c.recentProducts[u])&&void 0!==e?e:[]}}},{key:"render",value:function(){return h(n,d.a,Object.assign({},this.props,this.containerProps()))}}]),r}(e.Extensible(u.PureComponent)),"Component/RecentlyViewedWidget/Container");t.a=Object(s.b)(p,f)(g)}
1).call(this,r(7).default,r(0))},1145:function(e,t,r){"use strict";(function(e,n){var i=r(1),a=r(10),o=r(3),c=r(6),u=r(8),s=r(4),l=r(5),d=r(0),p=(r(62),r(1308)),f=r(11).checkBEMProps,h=e.middleware(function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){var e;Object(o.a)(this,r);for(var n=arguments.length,c=new Array(n),s=0;s<n;s++)c[s]=arguments[s];return(e=t.call.apply(t,[this].concat(c))).containerFunctions={onChange:e.onChange.bind(Object(u.a)(e))},e.containerProps=function(){var t=e.props.option,r=t.attribute_code,n=t.attribute_label;return{selectValue:e._getSelectValue(),selectOptions:e._getSelectOptions(),selectName:r,selectLabel:n}},e._getSelectOptions=function(){var t=e.props,r=t.option,n=r.attribute_options,o=r.attribute_code,c=t.getIsConfigurableAttributeAvailable;return n?Object.values(n).reduce((function(e,t){var r=t.value;return c({attribute_code:o,attribute_value:r})?[].concat(Object(a.a)(e),[Object(i.a)(Object(i.a)({},t),{},{id:r})]):e}),[]):(console.warn('Please make sure "'.concat(o,'" is visible on Storefront.')),[])},e._getSelectValue=function(){var t=e.props.option.attribute_code,r=e.props.parameters;return(void 0===r?{}:r)[t]},e}return Object(c.a)(r,[{key:"onChange",value:function(e){var t=this.props;(0,t.updateConfigurableVariant)(t.option.attribute_code,e)}},{key:"render",value:function(){return f(n,p.a,Object.assign({},this.props,this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(d.PureComponent)),"Component/ProductConfigurableAttributeDropdown/Container");t.a=h}).call(this,r(7).default,r(0))},1174:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return h}));var i=r(10),a=r(3),o=r(6),c=r(8),u=r(4),s=r(5),l=r(0),d=r(30),p=r(1175),f=r(11).checkBEMProps,h=e.middleware(function(e){Object(u.a)(r,e);var t=Object(s.a)(r);function r(){var e;Object(a.a)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).containerFunctions={handleOptionClick:e.handleOptionClick.bind(Object(c.a)(e)),getSubHeading:e.getSubHeading.bind(Object(c.a)(e)),isSelected:e.isSelected.bind(Object(c.a)(e)),getLink:e.getLink.bind(Object(c.a)(e))},e}return Object(o.a)(r,[{key:"getLink",value:function(e){var t=e.attribute_code,r=e.attribute_value,n=this.props.getLink;return n(t,r)}},{key:"getSubHeading",value:function(e){var t=this,r=e.attribute_values,n=e.attribute_code,a=e.attribute_options,o=e.is_boolean,c=void 0!==o&&o;return r.reduce((function(e,r){return t.isSelected({attribute_code:n,attribute_value:r})?[].concat(Object(i.a)(e),[Object(d.g)(a[r].label,c)]):e}),[]).join(", ")}},{key:"handleOptionClick",value:function(e){var t=e.attribute_code,r=e.attribute_value;(0,this.props.updateConfigurableVariant)(t,r)}},{key:"isSelected",value:function(e){var t=e.attribute_code,r=e.attribute_value,n=this.props.parameters,i=(void 0===n?{}:n)[t];return void 0!==i&&(void 0!==i.length?i.includes(r):i===r)}},{key:"render",value:function(){return f(n,p.a,Object.assign({},this.props,this.containerFunctions))}}]),r}(e.Extensible(l.PureComponent)),"Component/ProductConfigurableAttributes/Container")}).call(this,r(7).default,r(0))},1175:function(e,t,r){"use strict";(function(e,n){var i,a,o=r(15),c=r(1),u=r(3),s=r(6),l=r(4),d=r(5),p=r(0),f=r(199),h=r(210),g=r(1307),b=(r(48),r(62),r(1310),r(11).checkBEMProps),v=e.middleware((a=i=function(e){Object(l.a)(r,e);var t=Object(d.a)(r);function r(){return Object(u.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"renderConfigurableAttributeValue",value:function(e){var t=this.props,r=t.getIsConfigurableAttributeAvailable,i=t.handleOptionClick,a=t.getLink,o=t.isSelected,c=e.attribute_value;return b(n,h.a,{key:c,attribute:e,isSelected:o(e),isAvailable:r(e),onClick:i,getLink:a})}},{key:"renderSwatch",value:function(e){var t=this,r=e.attribute_values;return b(n,"div",{block:"ProductConfigurableAttributes",elem:"SwatchList"},r.map((function(r){return t.renderConfigurableAttributeValue(Object(c.a)(Object(c.a)({},e),{},{attribute_value:r}))})))}},{key:"renderDropdown",value:function(e){var t=this.props,r=t.updateConfigurableVariant,i=t.getIsConfigurableAttributeAvailable,a=t.parameters;return b(n,g.a,{option:e,updateConfigurableVariant:r,getIsConfigurableAttributeAvailable:i,parameters:a})}},{key:"renderPlaceholders",value:function(){var e=this.props,t=e.numberOfPlaceholders,r=e.isContentExpanded;return t.map((function(e,t){return b(n,f.default,{key:t,mix:{block:"ProductConfigurableAttributes",elem:"Expandable"},isContentExpanded:r},b(n,"div",{key:t,block:"ProductConfigurableAttributes",elem:"SwatchList"},Array.from({length:e},(function(e,t){return b(n,"div",{key:t,block:"ProductConfigurableAttributes",elem:"Placeholder"})}))))}
1))}},{key:"renderConfigurableAttributes",value:function(){var e=this,t=this.props,r=t.configurable_options,i=t.isContentExpanded,a=t.getSubHeading;return Object.values(r).map((function(t){var r=t.attribute_label,c=t.attribute_code,u=t.attribute_options,s=u?Object.values(u):[{}],l=!!Object(o.a)(s,1)[0].swatch_data;return b(n,f.default,{key:c,heading:r,subHeading:a(t),mix:{block:"ProductConfigurableAttributes",elem:"Expandable"},isContentExpanded:i},l?e.renderSwatch(t):e.renderDropdown(t))}))}},{key:"render",value:function(){var e=this.props,t=e.isReady,r=e.mix;return b(n,"div",{block:"ProductConfigurableAttributes",mods:{isLoading:!t},mix:r},t?this.renderConfigurableAttributes():this.renderPlaceholders())}}]),r}(e.Extensible(p.PureComponent)),i.defaultProps={isReady:!0,mix:{},numberOfPlaceholders:[6,10,7],isContentExpanded:!1,getIsConfigurableAttributeAvailable:function(){return!0}},a),"Component/ProductConfigurableAttributes/Component");t.a=v}).call(this,r(7).default,r(0))},1178:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(1),i=r(2),a=r.n(i),o=a.a.arrayOf(a.a.shape({category_name:a.a.string,category_url:a.a.string,category_level:a.a.number})),c={id:a.a.number,breadcrumbs:o,description:a.a.string,image:a.a.string,meta_description:a.a.string,meta_title:a.a.string,name:a.a.string,product_count:a.a.number,url_key:a.a.string,url_path:a.a.string,display_mode:a.a.string};a.a.shape(Object(n.a)(Object(n.a)({},c),{},{children:a.a.arrayOf(a.a.shape(c))}))},1188:function(e,t,r){},1189:function(e,t,r){"use strict";(function(e,n,i){var a,o,c=r(3),u=r(6),s=r(8),l=r(4),d=r(5),p=r(0),f=r(79),h=(r(62),r(58)),g=(r(1190),r(11).checkBEMProps),b=e.middleware((o=a=function(e){Object(l.a)(r,e);var t=Object(d.a)(r);function r(){var e;Object(c.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).newProductsRef=Object(p.createRef)(),e.renderProductCard=e.renderProductCard.bind(Object(s.a)(e)),e}return Object(u.a)(r,[{key:"componentDidMount",value:function(){this.setStyles()}},{key:"componentDidUpdate",value:function(){this.setStyles()}},{key:"setStyles",value:function(){var e=this.props.productsPerPage;h.a.setVariable(this.newProductsRef,"new-products-per-page-count",e)}},{key:"renderProductCard",value:function(e,t){var r=this.props,i=r.productCardProps,a=r.productCardFunctions;return g(n,f.a,Object.assign({key:e.id||t,product:e},i,a))}},{key:"render",value:function(){var e=this.props.products;return g(n,"section",{block:"NewProducts",ref:this.newProductsRef},g(n,"h2",null,i("New Products")),g(n,"ul",{block:"NewProducts",elem:"Products"},e.map(this.renderProductCard)))}}]),r}(e.Extensible(p.PureComponent)),a.defaultProps={products:Array.from({length:4},(function(){return{}})),productsPerPage:6},o),"Component/NewProducts/Component");t.a=b}).call(this,r(7).default,r(0),r(16).default)},1190:function(e,t,r){},1201:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return b}));var i=r(10),a=r(3),o=r(6),c=r(19),u=r(17),s=r(4),l=r(5),d=r(90),p=r(29),f=r(289),h=r(24),g=r(65),b=e.middleware(function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"__construct",value:function(){Object(c.a)(Object(u.a)(r.prototype),"__construct",this).call(this,"recentlyViewedProducts")}},{key:"onSuccess",value:function(e,t){var r=e.products.items,n=Object(g.a)().getState().ConfigReducer.code;t(Object(f.d)(r,n))}},{key:"onError",value:function(e,t){t(Object(p.d)("error",n("Error fetching Recently Viewed Products Information!"),e))}},{key:"prepareRequest",value:function(e){var t=e.recentProducts[e.store].reduce((function(e,t){var r=t.sku;return[].concat(Object(i.a)(e),["".concat(r.replace(/ /g,"%20"))])}),[]);return[d.b.getQuery({args:{filter:{productsSkuArray:t}},notRequireInfo:!0})]}}]),r}(e.Extensible(h.a)),"Store/RecentlyViewedProducts/Dispatcher");new b}).call(this,r(7).default,r(16).default)},1202:function(e,t,r){"use strict";(function(e,n,i){var a,o,c=r(3),u=r(6),s=r(8),l=r(4),d=r(5),p=r(0),f=r.n(p),h=r(79),g=(r(62),r(1203),r(11).checkBEMProps),b=e.middleware((o=a=function(e){Object(l.a)(r,e);var t=Object(d.a)(r);function r(){var e;Object(c.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).renderProductCard=e.renderProductCard.bind(Object(s.a)(e)),e}return Object(u.a)(r,[{key:"renderProducts",value:function(e){var t=this,r=this.props.pageSize;return g(f.a,"ul",{block:"RecentlyViewedWidget",elem:"Page"},e.slice(0,r).map((function(e){return t.renderProductCard(e)})))}},{key:"renderProductCard",value:function(e){var t=this.props,r=t.productCardProps,n=t.productCardFunctions,i=t.shouldBeUpdated,a=e.id,o=e.selectedFilters;return g(f.a,h.a,Object.assign({selectedFilters:o,product:e,key:a,isPreview:i},r,n))}},{key:"render",value:function(){var e=this.props.products,t=void 0===e?[]:e;return t.length?g(f.a,"div",{block:"RecentlyViewedWidget"},g(f.a,"h2",null,i("Recently Viewed Products")),this.renderProducts(t)):null}}]),r}(e.Extensible(n)),a.defaultProps={pageSize:6},o),"Component/RecentlyViewedWidget/Component");t.a=b}
1).call(this,r(7).default,r(0).PureComponent,r(16).default)},1203:function(e,t,r){},1307:function(e,t,r){"use strict";var n=r(1145);r.d(t,"a",(function(){return n.a}))},1308:function(e,t,r){"use strict";(function(e,n,i){var a,o,c=r(3),u=r(6),s=r(4),l=r(5),d=r(0),p=r(44),f=(r(1309),r(11).checkBEMProps),h=e.middleware((o=a=function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){return Object(c.a)(this,r),t.apply(this,arguments)}return Object(u.a)(r,[{key:"render",value:function(){var e=this.props,t=e.selectOptions,r=e.selectValue,a=e.selectName,o=e.selectLabel,c=e.onChange;return f(n,p.a,{id:a,name:a,type:"select",placeholder:i("Choose %s",o.toLowerCase()),mix:{block:"ProductConfigurableAttributeDropdown"},selectOptions:t,value:r,onChange:c})}}]),r}(e.Extensible(d.PureComponent)),a.defaultProps={selectValue:"",selectLabel:"attribute"},o),"Component/ProductConfigurableAttributeDropdown/Component");t.a=h}).call(this,r(7).default,r(0),r(16).default)},1309:function(e,t,r){},1310:function(e,t,r){},1324:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return b}));var i=r(13),a=r(1),o=r(15),c=r(3),u=r(6),s=r(4),l=r(5),d=r(0),p=r(20),f=(r(48),r(26)),h=r(2132),g=r(11).checkBEMProps,b=e.middleware(function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){var e;Object(c.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).containerProps=function(){return{isContentFiltered:e.isContentFiltered()}},e.containerFunctions=function(){return{resetFilters:e.resetFilters}},e.resetFilters=function(){var t=e.props,r=t.location,n=t.history;Object(f.h)({customFilters:"",priceMin:"",priceMax:"",page:""},r,n)},e}return Object(u.a)(r,[{key:"isContentFiltered",value:function(){var e=this.urlStringToObject(),t=e.customFilters,r=e.priceMin,n=e.priceMax;return!!(t||r||n)}},{key:"urlStringToObject",value:function(){var e=this.props.location.search;return(void 0===e?"":e).substr(1).split("&").reduce((function(e,t){var r=t.split("="),n=Object(o.a)(r,2),c=n[0],u=n[1];return Object(a.a)(Object(a.a)({},e),{},Object(i.a)({},c,u))}),{})}},{key:"render",value:function(){return g(n,h.a,Object.assign({},this.props,this.containerProps(),this.containerFunctions()))}}]),r}(e.Extensible(d.PureComponent)),"Component/ResetButton/Container");Object(p.g)(b)}).call(this,r(7).default,r(0))},1325:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n="category-filter"},1589:function(e,t,r){"use strict";var n=r(1590);r.d(t,"a",(function(){return n.a}))},1591:function(e,t,r){"use strict";var n=r(1592);r.d(t,"a",(function(){return n.a}))},1597:function(e,t,r){"use strict";(function(e){var n=r(12),i=r(2127),a=e.middleware((function(e){return{isMobile:e.ConfigReducer.device.isMobile}}),"Component/ExpandableContentShowMore/Container/mapStateToProps"),o=e.middleware((function(e){return{}}),"Component/ExpandableContentShowMore/Container/mapDispatchToProps");t.a=Object(n.b)(a,o)(i.a)}).call(this,r(7).default)},1599:function(e,t,r){"use strict";var n=r(1600);r.d(t,"a",(function(){return n.a}))},1603:function(e,t,r){"use strict";var n=r(1604);r.d(t,"a",(function(){return n.a}))},2109:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"c",(function(){return B})),r.d(t,"b",(function(){return E})),r.d(t,"a",(function(){return I}));var a,o,c=r(1),u=r(3),s=r(6),l=r(4),d=r(5),p=r(12),f=r(18),h=r(91),g=r(1323),b=r(344),v=r(144),y=r(59),m=r(51),C=r(152),O=r(37),P=r(154),k=r(24),j=r(26),S=r(1606),F=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,995)),w=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,1653)),L=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,1342)),R=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,997)),M=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,357)),B=e.middleware((function(e){return{category:e.CategoryReducer.category,isOffline:e.OfflineReducer.isOffline,filters:e.ProductListInfoReducer.filters,currentArgs:e.ProductListReducer.currentArgs,sortFields:e.ProductListInfoReducer.sortFields,minPriceRange:e.ProductListInfoReducer.minPrice,maxPriceRange:e.ProductListInfoReducer.maxPrice,isInfoLoading:e.ProductListInfoReducer.isLoading,totalPages:e.ProductListReducer.totalPages,device:e.ConfigReducer.device}}),"Route/SearchPage/Container/mapStateToProps"),E=e.middleware((function(e){return{toggleOverlayByKey:function(t){return e(Object(O.f)(t))},changeHeaderState:function(t){return e(Object(y.c)(m.b,t))},changeNavigationState:function(t){return e(Object(y.c)(m.a,t))},requestCategory:function(t){return w.then((function(r){return r.default.handleData(e,t)}))},updateBreadcrumbs:function(t){return F.then((function(r){return r.default.update(t,e)}))},requestProductListInfo:function(t){return M.then((function(r){return r.default.handleData(e,t)}))},updateLoadStatus:function(t){return e(Object(P.c)(t))},updateNoMatch:function(t){return R.then((function(r){return r.default.updateNoMatch(e,t)}))},setBigOfflineNotice:function(t){return e(Object(C.c)(t))},updateMetaFromCategory:function(t){return L.then((function(r){return r.default.updateWithCategory(t,e)}))},updateCurrentCategory:function(t){return e(Object(b.b)(t))},updateMeta:function(t){return e(Object(v.b)(t))}}}),"Route/SearchPage/Container/mapDispatchToProps"),_=r(11).checkBEMProps,I=e.middleware((o=a=function(e){Object(l.a)(r,e);var t=Object(d.a)(r);function r(){return Object(u.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"updateMeta",value:function(){var e=this.props.updateMeta;e({title:n("Search")})}},{key:"updateBreadcrumbs",value:function(){var e=this.props.updateBreadcrumbs;e([{url:"",name:this.getSearchParam().toUpperCase()}])}},{key:"updateHeaderState",value:function(){var e,t=this.props,r=t.changeHeaderState,n=t.history,i=((null===n||void 0===n||null===(e=n.location)||void 0===e?void 0:e.state)||{}).category,a=this.getSearchParam(),o=i?function(){return n.goBack()}:function(){return n.push(Object(j.a)("/menu"))};r({name:f.d,title:a,onBackClick:o})}},{key:"getIsMatchingListFilter",value:function(){var e=this.props.currentArgs.search;
1return this.getSearchParam()===e}},{key:"getIsMatchingInfoFilter",value:function(){var e=this.props.currentArgs.search;return this.getSearchParam()===e}},{key:"componentDidMount",value:function(){this.updateMeta(),this.updateBreadcrumbs(),this.updateHeaderState(),this.updateNavigationState()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isOffline,n=t.match.params.query,i=e.match.params.query;r&&Object(k.b)(this.setOfflineNoticeSize,h.h)(),n!==i&&(this.updateMeta(),this.updateBreadcrumbs(),this.updateHeaderState())}},{key:"getSearchParam",value:function(){return this.props.match.params.query}},{key:"render",value:function(){return _(i,S.b,Object.assign({},this.props,this.containerFunctions,this.containerProps(),{search:this.getSearchParam()}))}}]),r}(e.Extensible(g.a)),a.defaultProps=Object(c.a)(Object(c.a)({},a.defaultProps),{},{isSearchPage:!0}),o),"Route/SearchPage/Container");Object(p.b)(B,E)(I)}).call(this,r(7).default,r(16).default,r(0))},2110:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return I})),r.d(t,"b",(function(){return A})),r.d(t,"a",(function(){return T}));var i,a,o=r(13),c=r(1),u=r(15),s=r(3),l=r(6),d=r(8),p=r(4),f=r(5),h=r(0),g=r(12),b=r(18),v=r(36),y=r(91),m=r(344),C=r(59),O=r(51),P=r(152),k=r(37),j=r(154),S=(r(1178),r(48),r(22)),F=r(24),w=r(26),L=r(1588),R=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,357)),M=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,995)),B=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,1653)),E=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,1342)),_=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,997)),I=e.middleware((function(e){return{category:e.CategoryReducer.category,isOffline:e.OfflineReducer.isOffline,filters:e.ProductListInfoReducer.filters,sortFields:e.ProductListInfoReducer.sortFields,currentArgs:e.ProductListReducer.currentArgs,selectedInfoFilter:e.ProductListInfoReducer.selectedFilter,isInfoLoading:e.ProductListInfoReducer.isLoading,totalPages:e.ProductListReducer.totalPages,device:e.ConfigReducer.device,plpType:e.ConfigReducer.plp_list_mode,isMobile:e.ConfigReducer.device.isMobile}}),"Route/CategoryPage/Container/mapStateToProps"),A=e.middleware((function(e){return{toggleOverlayByKey:function(t){return e(Object(k.f)(t))},changeHeaderState:function(t){return e(Object(C.c)(O.b,t))},changeNavigationState:function(t){return e(Object(C.c)(O.a,t))},requestCategory:function(t){return B.then((function(r){return r.default.handleData(e,t)}))},updateBreadcrumbs:function(t){return Object.keys(t).length?M.then((function(r){return r.default.updateWithCategory(t,e)})):M.then((function(t){return t.default.update([],e)}))},requestProductListInfo:function(t){return R.then((function(r){return r.default.handleData(e,t)}))},updateLoadStatus:function(t){return e(Object(j.c)(t))},updateNoMatch:function(t){return _.then((function(r){return r.default.updateNoMatch(e,t)}))},setBigOfflineNotice:function(t){return e(Object(P.c)(t))},updateMetaFromCategory:function(t){return E.then((function(r){return r.default.updateWithCategory(t,e)}))},clearCategory:function(){return e(Object(m.b)({}))}}}),"Route/CategoryPage/Container/mapDispatchToProps"),x=r(11).checkBEMProps,T=e.middleware((a=i=function(e){Object(p.a)(r,e);var t=Object(f.a)(r);function r(){var e;Object(s.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={currentCategoryIds:-1,breadcrumbsWereUpdated:!1,selectedLayoutType:null},e.config={sortKey:"name",sortDirection:"ASC"},e.containerFunctions={onSortChange:e.onSortChange.bind(Object(d.a)(e)),onGridButtonClick:e.onGridButtonClick.bind(Object(d.a)(e)),onListButtonClick:e.onListButtonClick.bind(Object(d.a)(e))},e.setOfflineNoticeSize=function(){var t=e.props,r=t.setBigOfflineNotice;r(!!t.isInfoLoading)},e.containerProps=function(){return{filter:e.getFilter(),isCurrentCategoryLoaded:e.isCurrentCategoryLoaded(),isMatchingListFilter:e.getIsMatchingListFilter(),isMatchingInfoFilter:e.getIsMatchingInfoFilter(),selectedSort:e.getSelectedSortFromUrl(),selectedFilters:e.getSelectedFiltersFromUrl(),isContentFiltered:e.isContentFiltered(),defaultPlpType:e.getDefaultPlpType(),plpTypes:e.getPlpTypes()}},e}
1return Object(l.a)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.categoryIds,r=e.category.id;window.scrollTo(0,0),this.updateMeta(),this.updateNavigationState(),this.updateHistory(),t===r?(this.updateBreadcrumbs(),this.updateHeaderState()):(this.updateHeaderState(!0),this.updateBreadcrumbs(!0))}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isOffline,n=t.categoryIds,i=t.category.id,a=t.currentArgs,o=(a=void 0===a?{}:a).filter,c=this.state.breadcrumbsWereUpdated,u=e.categoryIds,s=e.category.id,l=e.currentArgs,d=(l=void 0===l?{}:l).filter;r&&Object(F.b)(this.setOfflineNoticeSize,y.h)(),n!==u&&this.updateHistory(),n!==i&&this.requestCategory();var p=i!==s||!c&&i===n;p&&(this.checkIsActive(),this.updateMeta(),this.updateBreadcrumbs(),this.updateHeaderState()),!p&&o&&d&&Object.keys(o.customFilters).length!==Object.keys(d.customFilters).length&&this.updateMeta()}},{key:"onGridButtonClick",value:function(){S.a.setItem(y.e,y.f),this.setState({selectedLayoutType:y.e})}},{key:"onListButtonClick",value:function(){S.a.setItem(y.g,y.f),this.setState({selectedLayoutType:y.g})}},{key:"onSortChange",value:function(e,t){var r=this.props,n=r.location,i=r.history;Object(w.h)({sortKey:t,sortDirection:e,page:""},n,i),this.updateMeta()}},{key:"getIsMatchingListFilter",value:function(){var e=this.props,t=e.location,r=e.currentArgs,n=(r=void 0===r?{}:r).currentPage,i=r.sort,a=r.filter;return JSON.stringify(a)===JSON.stringify(this.getFilter())&&JSON.stringify(i)===JSON.stringify(this.getSelectedSortFromUrl())&&n===+(Object(w.d)("page",t)||1)}},{key:"getIsMatchingInfoFilter",value:function(){var e=this.props;return e.categoryIds===e.selectedInfoFilter.categoryIds}},{key:"isCurrentCategoryLoaded",value:function(){var e=this.props,t=e.categoryIds,r=e.category.id;return e.isSearchPage||t===r}},{key:"isContentFiltered",value:function(){var e=this.urlStringToObject(),t=e.customFilters,r=e.priceMin,n=e.priceMax;return!!(t||r||n)}},{key:"urlStringToObject",value:function(){return this.props.location.search.substr(1).split("&").reduce((function(e,t){var r=t.split("="),n=Object(u.a)(r,2),i=n[0],a=n[1];return Object(c.a)(Object(c.a)({},e),{},Object(o.a)({},i,a))}),{})}},{key:"getSelectedFiltersFromUrl",value:function(){var e=this.props.location;return(Object(w.d)("customFilters",e)||"").split(";").reduce((function(e,t){if(!t)return e;var r=t.split(":"),n=Object(u.a)(r,2),i=n[0],a=n[1];return Object(c.a)(Object(c.a)({},e),{},Object(o.a)({},i,a.split(",")))}),{})}},{key:"getSelectedSortFromUrl",value:function(){var e=this.props,t=e.location,r=e.category.default_sort_by,n=this.config,i=n.sortKey,a=n.sortDirection,o=r||i;return{sortDirection:Object(w.d)("sortDirection",t)||a,sortKey:Object(w.d)("sortKey",t)||o}}},{key:"getSelectedPriceRangeFromUrl",value:function(){var e=this.props.location;return{min:+Object(w.d)("priceMin",e),max:+Object(w.d)("priceMax",e)}}},{key:"getDefaultPlpType",value:function(){return this.state.defaultPlpType}},{key:"getPlpTypes",value:function(){return this.state.plpTypes}},{key:"getFilter",value:function(){var e=this.props.categoryIds,t=this.getSelectedFiltersFromUrl(),r=this.getSelectedPriceRangeFromUrl();return-1===e?{priceRange:r,customFilters:t}:{priceRange:r,customFilters:t,categoryIds:e}}},{key:"updateHistory",value:function(){var e=this.props,t=e.history,r=e.location,n=e.categoryIds,i=r.search,a=r.pathname,o=r.state,u=void 0===o?{}:o,s=u.category;-1!==n&&s!==n&&t.replace({pathname:a,search:i,state:Object(c.a)(Object(c.a)({},u),{},{category:n})})}},{key:"checkIsActive",value:function(){var e=this.props,t=e.category.is_active,r=e.updateNoMatch;t||r({noMatch:!0})}},{key:"updateMeta",value:function(){var e=this.props,t=e.updateMetaFromCategory,r=e.category,n=e.history.location.search?"":"follow, index";t(Object(c.a)(Object(c.a)({},r),{},{meta_robots:n}))}},{key:"updateBreadcrumbs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,r=t.updateBreadcrumbs,n=t.category,i=e?{}:n;r(i),this.setState({breadcrumbsWereUpdated:!0})}},{key:"updateNavigationState",value:function(){(0,this.props.changeNavigationState)({name:v.g,isVisibleOnScroll:!0})}},{key:"updateHeaderState",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.props,n=r.changeHeaderState,i=r.category.name,a=r.history,o=(null===a||void 0===a||null===(e=a.location)||void 0===e?void 0:e.state)||{},c=o.category,u=c?function(){return a.goBack()}:function(){return a.push(Object(w.a)("/menu"))},s=t?void 0:i;n({name:b.d,title:s,onBackClick:u})}},{key:"requestCategory",value:function(){var e=this.props,t=e.categoryIds,r=e.isSearchPage,n=e.requestCategory,i=this.state.currentCategoryIds;-1!==t&&t!==i&&(this.setState({currentCategoryIds:t,breadcrumbsWereUpdated:!1}),n({isSearchPage:r,categoryIds:t}))}},{key:"render",value:function(){var e=this.config.pageSize,t=this.state,r=t.defaultPlpType,i=t.selectedLayoutType,a=t.activeLayoutType;return x(n,L.a,Object.assign({},this.props,{pageSize:e,defaultPlpType:r,selectedLayoutType:i,activeLayoutType:a},this.containerFunctions,this.containerProps()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.currentCategoryIds,n=t.defaultPlpType,i=t.plpTypes,a=e.category.id,o=e.plpType,c=e.isMobile,u={};if(!n||!i)if(o.match("-")){var s=o.split("-"),l=c?y.e:s[0];Object.assign(u,{defaultPlpType:l,plpTypes:s})}else{var d=c?y.e:o;Object.assign(u,{defaultPlpType:d,plpTypes:[o]})}return r===a&&Object.assign(u,{currentCategoryIds:-1}),Object.keys(u).length?u:null}}]),r}
1(e.Extensible(h.PureComponent)),i.defaultProps={categoryIds:-1,isSearchPage:!1,currentArgs:{},selectedInfoFilter:{},plpType:""},a),"Route/CategoryPage/Container");Object(g.b)(I,A)(T)}).call(this,r(7).default,r(0))},2111:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return g}));var i,a,o=r(3),c=r(6),u=r(4),s=r(5),l=r(0),d=r(67),p=r(49),f=r(56),h=(r(1178),r(2112),r(11).checkBEMProps),g=e.middleware((a=i=function(e){Object(u.a)(r,e);var t=Object(s.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(c.a)(r,[{key:"renderCategoryName",value:function(){var e=this.props,t=e.category,r=t.name,i=t.id,a=e.isCurrentCategoryLoaded;return i&&!r?null:a?h(n,"h2",{block:"CategoryDetails",elem:"Heading"},h(n,f.a,{content:r})):this.renderCategoryNamePlaceholder()}},{key:"renderCategoryNamePlaceholder",value:function(){return h(n,"h2",{block:"CategoryDetails",elem:"Heading"},h(n,f.a,null))}},{key:"renderCategoryDescription",value:function(){var e=this.props,t=e.category,r=t.description,i=t.id,a=e.isCurrentCategoryLoaded;return i&&a?r?h(n,d.a,{content:r}):null:this.renderCategoryDescriptionPlaceholder()}},{key:"renderCategoryDescriptionPlaceholder",value:function(){return h(n,"p",null,h(n,f.a,{length:"long"}))}},{key:"renderCategoryImagePlaceholder",value:function(){return h(n,p.a,{mix:{block:"CategoryDetails",elem:"Picture"},objectFit:"cover",ratio:"custom",isPlaceholder:!0})}},{key:"renderCategoryImage",value:function(){var e=this.props,t=e.category,r=t.image,i=t.id,a=e.isCurrentCategoryLoaded;return i&&a?r?h(n,p.a,{mix:{block:"CategoryDetails",elem:"Picture"},src:r||"",ratio:"custom",objectFit:"cover"}):null:this.renderCategoryImagePlaceholder()}},{key:"render",value:function(){return h(n,"article",{block:"CategoryDetails"},h(n,"div",{block:"CategoryDetails",elem:"Description"},this.renderCategoryName(),this.renderCategoryDescription()),this.renderCategoryImage())}}]),r}(e.Extensible(l.PureComponent)),i.defaultProps={isCurrentCategoryLoaded:!0},a),"Component/CategoryDetails/Component")}).call(this,r(7).default,r(0))},2112:function(e,t,r){},2114:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"c",(function(){return P})),r.d(t,"b",(function(){return k})),r.d(t,"a",(function(){return S}));var a=r(13),o=r(1),c=r(15),u=r(3),s=r(6),l=r(8),d=r(4),p=r(5),f=r(0),h=r(12),g=r(20),b=r(18),v=r(59),y=r(51),m=r(37),C=(r(48),r(26)),O=r(2115),P=e.middleware((function(e){return{isInfoLoading:e.ProductListInfoReducer.isLoading,isProductsLoading:e.ProductListReducer.isLoading,totalPages:e.ProductListReducer.totalPages}}),"Component/CategoryFilterOverlay/Container/mapStateToProps"),k=e.middleware((function(e){return{hideActiveOverlay:function(){return e(Object(m.d)())},goToPreviousHeaderState:function(){return e(Object(v.d)(y.b))},goToPreviousNavigationState:function(){return e(Object(v.d)(y.a))},changeHeaderState:function(t){return e(Object(v.c)(y.b,t))},changeNavigationState:function(t){return e(Object(v.c)(y.a,t))}}}),"Component/CategoryFilterOverlay/Container/mapDispatchToProps"),j=r(11).checkBEMProps,S=e.middleware(function(e){Object(d.a)(r,e);var t=Object(p.a)(r);function r(){var e;Object(u.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).containerFunctions={onSeeResultsClick:e.onSeeResultsClick.bind(Object(l.a)(e)),toggleCustomFilter:e.toggleCustomFilter.bind(Object(l.a)(e)),getFilterUrl:e.getCustomFilterUrl.bind(Object(l.a)(e)),onVisible:e.onVisible.bind(Object(l.a)(e)),onHide:e.onHide.bind(Object(l.a)(e))},e.historyBackHook=function(){var t=e.props,r=t.goToPreviousNavigationState,n=t.customFiltersValues,i=t.hideActiveOverlay,a=t.goToPreviousHeaderState;r(),0===Object.keys(n).length&&(i(),a())},e.containerProps=function(){return{areFiltersEmpty:e.getAreFiltersEmpty(),isContentFiltered:e.isContentFiltered()}},e}return Object(s.a)(r,[{key:"updateFilter",value:function(e,t){var r=this.props,n=r.location,i=r.history;Object(C.h)({customFilters:this.getFilterUrl(e,t,!1),page:""},n,i)}},{key:"toggleCustomFilter",value:function(e,t){this.updateFilter(e,this._getNewFilterArray(e,t))}},{key:"getFilterUrl",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.props.location.pathname,i=this._getNewSelectedFiltersString(e,t),a=r?"".concat(n,"?customFilters="):"",o=this._formatSelectedFiltersString(i);return"".concat(a).concat(o)}},{key:"getCustomFilterUrl",value:function(e,t){return this.getFilterUrl(e,this._getNewFilterArray(e,t))}},{key:"_getSelectedFiltersFromUrl",value:function(){var e=this.props.location;return(Object(C.d)("customFilters",e)||"").split(";").reduce((function(e,t){if(!t)return e;var r=t.split(":"),n=Object(c.a)(r,2),i=n[0],u=n[1];return Object(o.a)(Object(o.a)({},e),{},Object(a.a)({},i,u.split(",")))}),{})}},{key:"_getNewSelectedFiltersString",value:function(e,t){var r=this._getSelectedFiltersFromUrl(),n=Object(o.a)(Object(o.a)({},r),{},Object(a.a)({},e,t));return Object.entries(n).reduce((function(e,t){var r=Object(c.a)(t,2),n=r[0],i=r[1];if(i.length){var a=i.sort().join(",");e.push("".concat(n,":").concat(a))}return e}),[]).sort().join(";")}},{key:"_formatSelectedFiltersString",value:function(e){var t=";"===e[e.length-1];return";"===e[0]?this._formatSelectedFiltersString(e.slice(0,-1)):t?e.slice(1):e}},{key:"onSeeResultsClick",value:function(){var e=this.props,t=e.hideActiveOverlay,r=e.goToPreviousHeaderState,n=e.goToPreviousNavigationState;t(),r(),n()}},{key:"onVisible",value:function(){var e=this.props,t=e.hideActiveOverlay,r=e.changeHeaderState,i=e.changeNavigationState,a=e.goToPreviousNavigationState,o=e.location,c=o.pathname,u=o.search;r({name:b.n,title:n("Filters"),onCloseClick:function(){t(),a()}}),i({name:b.n,isHidden:!0}),window.addEventListener("popstate",this.historyBackHook),history.pushState({overlayOpen:!0},"",c+u)}},{key:"onHide",value:function(){window.removeEventListener("popstate",this.historyBackHook)}},{key:"getAreFiltersEmpty",value:function(){var e=this.props,t=e.isInfoLoading,r=e.availableFilters;return!t&&(!r||!Object.keys(r).length)}},{key:"isContentFiltered",value:function(){var e=this.urlStringToObject(),t=e.customFilters,r=e.priceMin,n=e.priceMax;return!!(t||r||n)}},{key:"urlStringToObject",value:function(){return this.props.location.search.substr(1).split("&").reduce((function(e,t){var r=t.split("="),n=Object(c.a)(r,2),i=n[0],u=n[1];return Object(o.a)(Object(o.a)({},e),{},Object(a.a)({},i,u))}),{})}},{key:"_getNewFilterArray",value:function(e,t){var r=this.props.customFiltersValues,n=void 0!==r[e]?Array.from(r[e]):[],i=n.indexOf(t);
1return"price"===e?[t]:(-1===i?n.push(t):n.splice(i,1),n)}},{key:"render",value:function(){return j(i,O.a,Object.assign({},this.props,this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(f.PureComponent)),"Component/CategoryFilterOverlay/Container");Object(g.g)(Object(h.b)(P,k)(S))}).call(this,r(7).default,r(16).default,r(0))},2121:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return y}));var a,o,c=r(3),u=r(6),s=r(4),l=r(5),d=r(0),p=r(2122),f=r(43),h=r(119),g=r(2131),b=r(1325),v=(r(2136),r(11).checkBEMProps),y=e.middleware((o=a=function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){return Object(c.a)(this,r),t.apply(this,arguments)}return Object(u.a)(r,[{key:"renderFilters",value:function(){var e=this.props,t=e.availableFilters,r=e.customFiltersValues,i=e.toggleCustomFilter,a=e.isMatchingInfoFilter,o=e.getFilterUrl;return v(n,p.a,{mix:{block:"CategoryFilterOverlay",elem:"Attributes"},isReady:a,configurable_options:t,getLink:o,parameters:r,updateConfigurableVariant:i})}},{key:"renderSeeResults",value:function(){var e=this.props.onSeeResultsClick;return v(n,"div",{block:"CategoryFilterOverlay",elem:"SeeResults"},v(n,"button",{block:"CategoryFilterOverlay",elem:"Button",mix:{block:"Button"},onClick:e},i("SEE RESULTS")))}},{key:"renderResetButton",value:function(){var e=this.props.onSeeResultsClick;return v(n,g.a,{onClick:e,mix:{block:"CategoryFilterOverlay",elem:"ResetButton"}})}},{key:"renderHeading",value:function(){return v(n,"h3",{block:"CategoryFilterOverlay",elem:"Heading"},i("Shopping Options"))}},{key:"renderNoResults",value:function(){return v(n,"p",{block:"CategoryFilterOverlay",elem:"NoResults"},i("The selected filter combination returned no results.\n                Please try again, using a different set of filters."))}},{key:"renderEmptyFilters",value:function(){return v(n,n.Fragment,null,this.renderNoResults(),this.renderResetButton(),this.renderSeeResults())}},{key:"renderMinimalFilters",value:function(){return this.renderSeeResults()}},{key:"renderDefaultFilters",value:function(){return v(n,n.Fragment,null,this.renderHeading(),this.renderResetButton(),this.renderFilters(),this.renderSeeResults())}},{key:"renderContent",value:function(){var e=this.props,t=e.totalPages,r=e.areFiltersEmpty;return e.isProductsLoading||0!==t?r?this.renderMinimalFilters():this.renderDefaultFilters():this.renderEmptyFilters()}},{key:"renderLoader",value:function(){var e=this.props,t=e.isInfoLoading,r=e.availableFilters;return r&&!!Object.keys(r).length?v(n,f.a,{isLoading:t}):null}},{key:"render",value:function(){var e=this.props,t=e.onVisible,r=e.onHide,i=e.totalPages,a=e.isProductsLoading,o=e.isContentFiltered,c=e.isCategoryAnchor;return(a||0!==i||o)&&c?v(n,h.a,{onVisible:t,onHide:r,mix:{block:"CategoryFilterOverlay"},id:b.a,isRenderInPortal:!1},v(n,"div",null,this.renderContent(),this.renderLoader())):v(n,"div",{block:"CategoryFilterOverlay"})}}]),r}(e.Extensible(d.PureComponent)),a.defaultProps={isCategoryAnchor:!0,isMatchingInfoFilter:!1},o),"Component/CategoryFilterOverlay/Component")}).call(this,r(7).default,r(0),r(16).default)},2122:function(e,t,r){"use strict";var n=r(1596);r.d(t,"a",(function(){return n.a}))},2123:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return f})),r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return b}));var i=r(1),a=r(3),o=r(6),c=r(8),u=r(4),s=r(5),l=r(12),d=r(1144),p=r(2124),f=e.middleware((function(e){return{currency_code:e.ConfigReducer.currencyData.current_currency_code,show_product_count:e.ConfigReducer.layered_navigation_product_count_enabled,childrenCategories:e.CategoryReducer.category.children}}),"Component/CategoryConfigurableAttributes/Container/mapStateToProps"),h=r(11).checkBEMProps,g=e.middleware(function(e){Object(u.a)(r,e);var t=Object(s.a)(r);function r(){var e;Object(a.a)(this,r);for(var n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];return(e=t.call.apply(t,[this].concat(o))).containerFunctions=Object(i.a)(Object(i.a)({},e.containerFunctions),{},{getSubCategories:e.getSubCategories.bind(Object(c.a)(e))}),e}return Object(o.a)(r,[{key:"getSubCategories",value:function(e){var t=Object(i.a)({},e),r=this.props.childrenCategories,n=e.attribute_values,a=r.map((function(e){return e.id.toString()})),o=n.filter((function(e){return a.includes(e)}));return t.attribute_values=o,t}},{key:"render",value:function(){return h(n,p.a,Object.assign({},this.props,this.containerFunctions))}}]),r}(e.Extensible(d.a)),"Component/CategoryConfigurableAttributes/Container"),b=e.middleware((function(e){return{}}),"Component/CategoryConfigurableAttributes/Container/mapDispatchToProps");Object(l.b)(f,b)(g)}
1).call(this,r(7).default,r(0))},2125:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return S}));var a,o,c=r(1),u=r(35),s=r(15),l=r(3),d=r(6),p=r(4),f=r(5),h=r(2),g=r.n(h),b=r(199),v=r(2126),y=r(352),m=r(1175),C=r(1178),O=r(38),P=r(30),k=["attribute_options"],j=r(11).checkBEMProps,S=e.middleware((o=a=function(e){Object(p.a)(r,e);var t=Object(f.a)(r);function r(){var e;Object(l.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).renderConfigurableOption=function(t){switch(t.attribute_code){case"price":return e.renderPriceSwatch(t);case"category_id":return e.renderSubCategories(t);default:return e.renderDropdownOrSwatch(t)}},e}return Object(d.a)(r,[{key:"renderSubCategories",value:function(e){var t=(0,this.props.getSubCategories)(e),r=t.attribute_values;return(void 0===r?[]:r).length?this.renderDropdownOrSwatch(t):null}},{key:"getPriceLabel",value:function(e){var t=this.props.currency_code,r=e.label.split("~"),i=Object(s.a)(r,2),a=i[0],o=i[1],c=Object(O.a)(a,t),u=Object(O.a)(o,t);return"*"===a?n("Up to %s",u):"*"===o?n("From %s",c):n("From %s, to %s",c,u)}},{key:"renderPriceSwatch",value:function(e){var t=this,r=e.attribute_options,n=Object(u.a)(e,k);if(r){if(r["*_*"])return null;n.attribute_options=Object.entries(r).reduce((function(e,r){var n=Object(s.a)(r,2),i=n[0],a=n[1];return e[i]=Object(c.a)(Object(c.a)({},a),{},{label:t.getPriceLabel(a)}),e}),{})}return this.renderDropdownOrSwatch(n)}},{key:"renderDropdownOrSwatch",value:function(e){var t=this.props,r=t.isContentExpanded,n=t.getSubHeading,a=e.attribute_label,o=e.attribute_code,c=e.attribute_options,u=c?Object.values(c):[{}],l=!!Object(s.a)(u,1)[0].swatch_data;return j(i,b.default,{key:o,heading:a,subHeading:n(e),mix:{block:"ProductConfigurableAttributes",elem:"Expandable"},isContentExpanded:r},l?this.renderSwatch(e):this.renderDropdown(e))}},{key:"renderConfigurableAttributeValue",value:function(e){var t=this.props,r=t.getIsConfigurableAttributeAvailable,n=t.handleOptionClick,a=t.getLink,o=t.isSelected,c=t.show_product_count,u=e.attribute_value;return j(i,y.a,{key:u,attribute:e,isSelected:o(e),isAvailable:r(e),onClick:n,getLink:a,isProductCountVisible:c})}},{key:"renderConfigurableAttributes",value:function(){var e=this.props.configurable_options;return Object(P.p)(Object.values(e),"attribute_position").map(this.renderConfigurableOption)}},{key:"renderDropdown",value:function(e){var t=this,r=e.attribute_values;return j(i,"div",{block:"ProductConfigurableAttributes",elem:"DropDownList"},j(i,v.a,null,r.map((function(r){return t.renderConfigurableAttributeValue(Object(c.a)(Object(c.a)({},e),{},{attribute_value:r}))}))))}}]),r}(e.Extensible(m.a)),a.propTypes=Object(c.a)(Object(c.a)({},m.a.propTypes),{},{currency_code:g.a.string.isRequired,show_product_count:g.a.bool.isRequired,childrenCategories:g.a.arrayOf(g.a.shape(C.a)).isRequired,getSubCategories:g.a.func.isRequired}),o),"Component/CategoryConfigurableAttributes/Component")}).call(this,r(7).default,r(16).default,r(0))},2126:function(e,t,r){"use strict";var n=r(1597);r.d(t,"a",(function(){return n.a}))},2128:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return g}));var a,o,c=r(3),u=r(6),s=r(19),l=r(17),d=r(4),p=r(5),f=r(0),h=(r(48),r(2129),r(11).checkBEMProps),g=e.middleware((o=a=function(e){Object(d.a)(r,e);var t=Object(p.a)(r);function r(){var e;Object(c.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).handleShowAllButtonClick=function(){e.state.isExpanding||e.setState((function(e){return{isOpen:!e.isOpen,isExpanding:!0}}))},e}return Object(u.a)(r,[{key:"__construct",value:function(e){Object(s.a)(Object(l.a)(r.prototype),"__construct",this).call(this,e),this.ref=Object(f.createRef)();var t=this.props,n=t.showElemCount,i=t.children.length;this.expandableRef=Object(f.createRef)(),this.state={isOpen:i>n,isExpanding:!1}}},{key:"componentDidMount",value:function(){this.state.isOpen&&this.setState({isOpen:!1})}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.state.isExpanding){var r=1e3*window.getComputedStyle(this.expandableRef.current).getPropertyValue("transition-duration").slice(0,-1);setTimeout((function(){return t.setState({isExpanding:!1})}),r)}this.props.children.length!==e.children.length&&this.getExpandableContentHeight()}},{key:"getExpandableContentHeight",value:function(){var e=this,t=this.state.isOpen,r=this.props,n=r.showElemCount,i=r.children.length;t&&i<=n?this.setState({isOpen:!1}):this.setState({isOpen:!0},(function(){e.setState({isOpen:!1})}))}},{key:"renderShowAllButton",value:function(){var e=this.props,t=e.showElemCount;if(e.children.length<=t)return null;var r=this.state.isOpen,a=r?{state:"isOpen"}:{};return h(n,"button",{onClick:this.handleShowAllButtonClick,mix:{block:"Button",mods:{likeLink:!0}
1},block:"ExpandableContentShowMore",elem:"ShowAllButton",mods:a},i(r?"Show less":"Show more"))}},{key:"renderExpandableChildren",value:function(){var e=this.state,t=e.isOpen,r=e.isExpanding,i=this.props,a=i.children,o=i.showElemCount,c=t||r?a.slice(o):null;return h(n,"div",{ref:this.expandableRef,block:"ExpandableContentShowMore",elem:"ExpandableChildren"},c)}},{key:"renderContent",value:function(){var e=this.props,t=e.children,r=e.showElemCount,i=t.slice(0,r);return h(n,n.Fragment,null,i,this.renderExpandableChildren(),this.renderShowAllButton())}},{key:"render",value:function(){var e=this.props,t=e.children;return e.isMobile?t:h(n,"div",{block:"ExpandableContentShowMore",ref:this.ref},this.renderContent())}}]),r}(e.Extensible(f.PureComponent)),a.defaultProps={showElemCount:3},o),"Component/ExpandableContentShowMore/Component")}).call(this,r(7).default,r(0),r(16).default)},2129:function(e,t,r){},2131:function(e,t,r){"use strict";var n=r(1598);r.d(t,"a",(function(){return n.a}))},2133:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return f}));var a,o,c=r(3),u=r(6),s=r(4),l=r(5),d=r(0),p=(r(48),r(2134),r(11).checkBEMProps),f=e.middleware((o=a=function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){var e;Object(c.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).onClick=function(){var t=e.props,r=t.onClick,n=t.resetFilters;r(),n()},e}return Object(u.a)(r,[{key:"render",value:function(){var e=this.props,t=e.mix;return e.isContentFiltered?p(n,"div",{block:"ResetButton",mix:t},p(n,"button",{onClick:this.onClick,block:"ResetButton",elem:"Button",mix:{block:"Button",mods:{isHollow:!0}}},i("Reset"))):null}}]),r}(e.Extensible(d.PureComponent)),a.defaultProps={mix:{}},o),"Component/ResetButton/Component")}).call(this,r(7).default,r(0),r(16).default)},2134:function(e,t,r){},2136:function(e,t,r){},2139:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return h}));var a,o,c=r(3),u=r(6),s=r(4),l=r(5),d=r(0),p=r(56),f=r(11).checkBEMProps,h=e.middleware((o=a=function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){return Object(c.a)(this,r),t.apply(this,arguments)}return Object(u.a)(r,[{key:"render",value:function(){var e=this.props,t=e.totalItems,r=e.isMatchingListFilter;return f(n,"p",{block:"CategoryPage",elem:"ItemsCount"},f(n,p.a,{content:r?i("%s items found",t):i("Products are loading...")}))}}]),r}(e.Extensible(d.PureComponent)),a.defaultProps={isMatchingListFilter:!1},o),"Component/CategoryItemsCount/Component")}).call(this,r(7).default,r(0),r(16).default)},2141:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return g}));var a,o,c=r(15),u=r(3),s=r(6),l=r(4),d=r(5),p=r(0),f=r(1602),h=r(11).checkBEMProps,g=e.middleware((o=a=function(e){Object(l.a)(r,e);var t=Object(d.a)(r);function r(){var e;Object(u.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).containerProps=function(){return{selectOptions:e._prepareOptions()}},e}return Object(s.a)(r,[{key:"_getLabel",value:function(e){var t=e.id,r=e.label.split(" "),i=Object(c.a)(r,1)[0];switch(i=i.charAt(0).toUpperCase()+i.slice(1),t){case"name":return{asc:n("Name: A to Z",i),desc:n("Name: Z to A",i)};case"position":return{asc:n("Best match")};case"price":return{asc:n("%s: Low to High",i),desc:n("%s: High to Low",i)};default:return{asc:n("%s: Ascending",i),desc:n("%s: Descending",i)}}}},{key:"_prepareOptions",value:function(){var e=this,t=this.props.sortFields;return t?t.reduce((function(t,r){var n=r.id,i=e._getLabel(r),a=i.asc,o=i.desc;return a&&t.push({id:"ASC ".concat(n),name:n,value:"ASC ".concat(n),label:a}),o&&t.push({id:"DESC ".concat(n),name:n,value:"DESC ".concat(n),label:o}),t}),[]):[]}},{key:"render",value:function(){return h(i,f.a,Object.assign({},this.props,this.containerProps()))}}]),r}(e.Extensible(p.PureComponent)),a.defaultProps={sortFields:[]},o),"Component/CategorySort/Container")}).call(this,r(7).default,r(16).default,r(0))},2142:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return b}));var a,o,c=r(2143),u=r(3),s=r(6),l=r(4),d=r(5),p=r(0),f=r(44),h=r(56),g=(r(2144),r(11).checkBEMProps),b=e.middleware((o=a=function(e){Object(l.a)(r,e);var t=Object(d.a)(r);function r(){var e;Object(u.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).onChange=function(t){var r=e.props.onSortChange,n=t.split(" "),i=Object(c.a)(n);r(i[0],i.slice(1))},e}return Object(s.a)(r,[{key:"renderPlaceholder",value:function(){return g(n,"p",{block:"CategorySort",elem:"Placeholder"},g(n,h.a,{length:"short"}))}},{key:"renderSortField",value:function(){var e=this.props,t=e.sort
1Key,r=e.sortDirection,a=e.selectOptions;return e.isMatchingInfoFilter?g(n,f.a,{id:"category-sort",name:"category-sort",type:"select",label:i("SORT"),mix:{block:"CategorySort",elem:"Select"},selectOptions:a,value:"".concat(r," ").concat(t),onChange:this.onChange}):this.renderPlaceholder()}},{key:"render",value:function(){return g(n,"div",{block:"CategorySort"},this.renderSortField())}}]),r}(e.Extensible(p.PureComponent)),a.defaultProps={isMatchingInfoFilter:!1},o),"Component/CategorySort/Component")}).call(this,r(7).default,r(0),r(16).default)},2143:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(370),i=r(369),a=r(226),o=r(371);function c(e){return Object(n.a)(e)||Object(i.a)(e)||Object(a.a)(e)||Object(o.a)()}},2144:function(e,t,r){},2148:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return b})),r.d(t,"b",(function(){return v})),r.d(t,"a",(function(){return m}));var i,a,o=r(3),c=r(6),u=r(8),s=r(4),l=r(5),d=r(0),p=r(12),f=r(327),h=r(155),g=(r(62),r(2149),Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,1338))),b=e.middleware((function(e){return{pages:e.ProductListReducer.pages,isOffline:e.OfflineReducer.isOffline,isLoading:e.ProductListReducer.isLoading,isPageLoading:e.ProductListReducer.isPageLoading,totalItems:e.ProductListReducer.totalItems,totalPages:e.ProductListReducer.totalPages}}),"Component/CategoryProductList/Container/mapStateToProps"),v=e.middleware((function(e){return{requestProductList:function(t){return g.then((function(r){return r.default.handleData(e,t)}))},updateLoadStatus:function(t){return e(Object(h.h)(t))}}}),"Component/CategoryProductList/Container/mapDispatchToProps"),y=r(11).checkBEMProps,m=e.middleware((a=i=function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){var e;Object(o.a)(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).containerFunctions={requestProductList:e.requestProductList.bind(Object(u.a)(e))},e.containerProps=function(){return{isLoading:e.getIsLoading(),isPreventRequest:e.getIsPreventRequest(),mix:{block:"CategoryProductList",mods:{layout:e.getLayout()}}}},e}return Object(c.a)(r,[{key:"getIsLoading",value:function(){var e=this.props,t=e.filter,r=e.isLoading,n=e.isMatchingListFilter,i=e.isCurrentCategoryLoaded;return-1===t.categoryIds||(!i||!!navigator.onLine&&(!n&&r))}},{key:"getIsPreventRequest",value:function(){var e=this.props,t=e.isMatchingListFilter,r=e.isMatchingInfoFilter;return t&&r}},{key:"getLayout",value:function(){return this.props.layout}},{key:"requestProductList",value:function(e){var t=this.props.requestProductList;t(e)}},{key:"render",value:function(){return y(n,f.a,Object.assign({},this.props,this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(d.PureComponent)),i.defaultProps={isMatchingListFilter:!1,isMatchingInfoFilter:!1,isCurrentCategoryLoaded:!1,filter:{},layout:"grid"},a),"Component/CategoryProductList/Container");Object(p.b)(b,v)(m)}).call(this,r(7).default,r(0))},2149:function(e,t,r){},2154:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return k}));var a,o,c=r(3),u=r(6),s=r(4),l=r(5),d=r(0),p=r(1589),f=r(1591),h=r(1325),g=r(1599),b=r(1603),v=r(2155),y=r(77),m=r(67),C=(r(1178),r(40),r(62),r(22)),O=r(91),P=(r(2156),r(11).checkBEMProps),k=e.middleware((o=a=function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){var e;Object(c.a)(this,r);for(var a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];return(e=t.call.apply(t,[this].concat(o))).state={},e.onFilterButtonClick=function(){(0,e.props.toggleOverlayByKey)(h.a)},e.renderLayoutButton=function(t){var r=e.props,a=r.onGridButtonClick,o=r.onListButtonClick,c=e.state.activeLayoutType;switch(t){case O.e:return P(n,"button",{key:t,onClick:a,mix:{block:O.e,mods:{isActive:c===O.e}}},i("Grid"));case O.g:return P(n,"button",{key:t,onClick:o,mix:{block:O.g,mods:{isActive:c===O.g}}},i("List"));default:return!1}},e}return Object(u.a)(r,[{key:"displayProducts",value:function(){var e=this.props.category,t=(e=void 0===e?{}:e).display_mode,r=void 0===t?O.d:t;return null===r||r===O.d||r===O.b}},{key:"displayCmsBlock",value:function(){var e=this.props.category,t=(e=void 0===e?{}:e).display_mode;return t===O.c||t===O.b}},{key:"renderCategoryDetails",value:function(){var e=this.props,t=e.category,r=e.isCurrentCategoryLoaded;return P(n,p.a,{category:t,isCurrentCategoryLoaded:r})}},{key:"renderFilterButton",value:function(){var e=this.props,t=e.isContentFiltered,r=e.totalPages,a=e.category.is_anchor;return!t&&0===r||!a?null:P(n,"button",{block:"CategoryPage",elem:"Filter",onClick:this.onFilterButtonClick},i("Filter"))}},{key:"renderFilterOverlay",value:function(){var e=this.props,t=e.filters,r=e.selectedFilters,i=e.isMatchingInfoFilter,a=this.props.category.is_anchor;return this.displayProducts()?P(n,f.a,{availableFilters:t,customFiltersValues:r,isMatchingInfoFilter:i,isCategoryAnchor:!!a}):null}},{key:"renderCategorySort",value:function(){var e=this.props,t=e.sortFields,r=e.selectedSort,i=e.onSortChange,a=e.isMatchingInfoFilter,o=t.options,c=void 0===o?{}:o,u=Object.values(c).map((function(e){return{id:e.value,label:e.label}})),s=r.sortDirection,l=r.sortKey;return P(n,v.a,{isMatchingInfoFilter:a,onSortChange:i,sortFields:u,sort
1Key:l,sortDirection:s})}},{key:"renderLayoutButtons",value:function(){var e=this.props.plpTypes;return 2!==e.length?null:P(n,"div",{block:"CategoryPage",elem:"LayoutButtons"},e.map(this.renderLayoutButton))}},{key:"renderItemsCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,r=t.isMatchingListFilter,i=t.device;return e&&!i.isMobile||!e&&i.isMobile?null:P(n,g.a,{isMatchingListFilter:r})}},{key:"renderCategoryProductList",value:function(){var e=this.props,t=e.filter,r=e.search,i=e.selectedSort,a=e.selectedFilters,o=e.isMatchingListFilter,c=e.isCurrentCategoryLoaded,u=e.isMatchingInfoFilter,s=this.state.activeLayoutType;return this.displayProducts()?P(n,"div",{block:"CategoryPage",elem:"ProductListWrapper"},this.renderItemsCount(!0),P(n,b.a,{filter:t,search:r,sort:i,selectedFilters:a,isCurrentCategoryLoaded:c,isMatchingListFilter:o,isMatchingInfoFilter:u,layout:s})):null}},{key:"renderCmsBlock",value:function(){var e=this.props.category.cms_block;if(!e||!this.displayCmsBlock())return null;var t=e.content;return e.disabled?null:P(n,"div",{block:"CategoryPage",elem:"CMS"},P(n,m.a,{content:t}))}},{key:"renderMiscellaneous",value:function(){return this.displayProducts()?P(n,"aside",{block:"CategoryPage",elem:"Miscellaneous"},P(n,"div",{block:"CategoryPage",elem:"LayoutWrapper"},this.renderLayoutButtons(),this.renderItemsCount()),this.renderCategorySort(),this.renderFilterButton()):null}},{key:"renderContent",value:function(){return P(n,n.Fragment,null,this.renderFilterOverlay(),this.renderCategoryDetails(),this.renderCmsBlock(),this.renderMiscellaneous(),this.renderCategoryProductList())}},{key:"render",value:function(){var e=!this.displayProducts();return P(n,"main",{block:"CategoryPage"},P(n,y.a,{wrapperMix:{block:"CategoryPage",elem:"Wrapper",mods:{hideProducts:e}},label:"Category page"},this.renderContent()))}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.isMobile,r=e.defaultPlpType,n=e.selectedLayoutType,i=C.a.getItem(O.f)||n;return i?{activeLayoutType:t?O.e:i||r}:{activeLayoutType:t?O.e:n||r}}}]),r}(e.Extensible(d.PureComponent)),a.defaultProps={isContentFiltered:!0,isMatchingListFilter:!1,isCurrentCategoryLoaded:!1,isMatchingInfoFilter:!1,totalPages:1,is_anchor:!0,search:"",selectedLayoutType:"",plpTypes:[]},o),"Route/CategoryPage/Component")}).call(this,r(7).default,r(0),r(16).default)},2155:function(e,t,r){"use strict";var n=r(1326);r.d(t,"a",(function(){return n.a}))},2156:function(e,t,r){},2158:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return d}));var a=r(3),o=r(6),c=r(4),u=r(5),s=r(1588),l=(r(2159),r(11).checkBEMProps),d=e.middleware(function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"renderSearchHeading",value:function(){var e=this.props.search;return l(n,"h1",{block:"CategoryDetails",elem:"Heading",mix:{block:"SearchPage",elem:"Heading"}},i("Search results for: "),l(n,"span",null,e))}},{key:"renderCategoryDetails",value:function(){return l(n,"article",{block:"CategoryDetails"},l(n,"div",{block:"CategoryDetails",elem:"Description"},this.renderSearchHeading()))}},{key:"renderCmsBlock",value:function(){return null}}]),r}(e.Extensible(s.a)),"Route/SearchPage/Component")}).call(this,r(7).default,r(0),r(16).default)},2159:function(e,t,r){},2231:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(6),o=r(8),c=r(4),u=r(5),s=r(0),l=r(12),d=r(2232),p=Promise.all([r.e(42),r.e(7),r.e(16)]).then(r.bind(null,1001)),f=e.middleware((function(e){return{searchResults:e.SearchBarReducer.productsInSearch,isLoading:e.SearchBarReducer.isLoading}}),"Component/SearchOverlay/Container/mapStateToProps"),h=e.middleware((function(e){return{makeSearchRequest:function(t){return p.then((function(r){return r.default.handleData(e,t)}))},clearSearchResults:function(){return p.then((function(t){return t.default.clearSearchResults(e)}))}}}),"Component/SearchOverlay/Container/mapDispatchToProps"),g=r(11).checkBEMProps,b=e.middleware(function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){var e;Object(i.a)(this,r);for(var n=arguments.length,a=new Array(n),c=0;c<n;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).containerFunctions={makeSearchRequest:e.makeSearchRequest.bind(Object(o.a)(e))},e}return Object(a.a)(r,[{key:"makeSearchRequest",value:function(){var e=this.props,t=e.makeSearchRequest,r=e.clearSearchResults,n=e.searchCriteria;
1n&&(r(),t({args:{search:n,pageSize:24,currentPage:1}}))}},{key:"render",value:function(){return g(n,d.a,Object.assign({},this.props,this.containerFunctions))}}]),r}(e.Extensible(s.PureComponent)),"Component/SearchOverlay/Container");t.a=Object(l.b)(f,h)(b)}).call(this,r(7).default,r(0))},2232:function(e,t,r){"use strict";(function(e,n,i){var a,o,c=r(3),u=r(6),s=r(4),l=r(5),d=r(0),p=r(119),f=r(455),h=(r(62),r(457)),g=(r(2233),r(11).checkBEMProps),b=e.middleware((o=a=function(e){Object(s.a)(r,e);var t=Object(l.a)(r);function r(){return Object(c.a)(this,r),t.apply(this,arguments)}return Object(u.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this,r=e.searchCriteria,n=this.props,i=n.searchCriteria,a=n.clearSearchResults,o=n.makeSearchRequest;i!==r&&(this.timeout&&clearTimeout(this.timeout),a(),this.timeout=setTimeout((function(){t.timeout=null,o()}),h.b))}},{key:"renderSearchItem",value:function(e,t){return g(n,f.a,{product:e,key:t})}},{key:"renderSearchCriteria",value:function(){var e=this.props.searchCriteria;return g(n,"p",{block:"SearchOverlay",elem:"Criteria",mods:{isVisible:!!e.trim()}},i("Results for:"),g(n,"strong",null,e))}},{key:"renderNoSearchCriteria",value:function(){return g(n,"p",null,i("Start typing to see search results!"))}},{key:"renderNoResults",value:function(){return g(n,"p",null,i("No results found!"))}},{key:"renderSearchResults",value:function(){var e=this,t=this.props,r=t.searchCriteria,i=t.searchResults,a=t.isLoading;if(!r.trim())return this.renderNoSearchCriteria();if(!i.length&&!a&&!this.timeout)return this.renderNoResults();var o=a||this.timeout?Array(h.a).fill({}):i;return g(n,"ul",null,o.map((function(t,r){return e.renderSearchItem(t,r)})))}},{key:"render",value:function(){return this.props.isHideOverlay?g(n,"article",{block:"SearchOverlay",elem:"Results","aria-label":"Search results"},this.renderSearchResults()):g(n,p.a,{id:"search",mix:{block:"SearchOverlay"}},this.renderSearchCriteria(),g(n,"article",{block:"SearchOverlay",elem:"Results","aria-label":"Search results"},this.renderSearchResults()))}}]),r}(e.Extensible(d.PureComponent)),a.defaultProps={searchCriteria:"",isHideOverlay:!1},o),"Component/SearchOverlay/Component");t.a=b}).call(this,r(7).default,r(0),r(16).default)},2233:function(e,t,r){},751:function(e,t,r){"use strict";r.r(t);var n=r(1103);r.d(t,"default",(function(){return n.a}))},752:function(e,t,r){"use strict";r.r(t);var n=r(1104);r.d(t,"default",(function(){return n.a}))},754:function(e,t,r){"use strict";r.r(t);var n=r(1108);r.d(t,"default",(function(){return n.a}))},767:function(e,t,r){"use strict";r.r(t);var n=r(1587);r.d(t,"default",(function(){return n.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.