1(this["webpackJsonppeggysage-pwa"]=this["webpackJsonppeggysage-pwa"]||[]).push([[45],{1693:function(e,t,r){"use strict";r.r(t);var n=r(2645);r.d(t,"default",(function(){return n.a}))},1767:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(0),i=r.n(n),a=r(40),o=(i.a.shape({title:i.a.string,content:i.a.string,meta_title:a.b,meta_description:i.a.string,meta_keywords:i.a.string}),i.a.shape({title:i.a.string,content:i.a.string})),s=(i.a.shape({items:i.a.objectOf(o)}),i.a.shape({identifier:i.a.string,title:i.a.string,content_image:i.a.string,page_type:i.a.string,limitation_customer_group_ids:i.a.arrayOf(i.a.number),featured_customer_group_ids:i.a.arrayOf(i.a.number),content_video:i.a.string,tag_label:i.a.string,category:i.a.shape({name:i.a.string,uid:i.a.string})}));i.a.shape({media_type:i.a.string,caption:i.a.string,media_url:i.a.string,permalink:i.a.string,thumbnail_url:i.a.string,timestamp:i.a.string}),i.a.shape({additional_block_html:i.a.string,auto_close_time:i.a.string,background_color:i.a.string,banner_id:i.a.number,banner_image:i.a.string,banner_image_desktop:i.a.string,banner_image_desktop_secondary:i.a.string,category:i.a.string,cms_block_id:i.a.number,content_position:i.a.string,cta_color:i.a.string,cta_label:i.a.string,description:i.a.string,floating_image:i.a.string,floating_position:i.a.string,fullwidth:i.a.bool,gradient:i.a.bool,name:i.a.string,page:i.a.number,page_type:i.a.string,popup_image:i.a.string,popup_responsive:i.a.string,priority:i.a.number,sku:i.a.string,title:i.a.string,title_color:i.a.string,title_color_desktop:i.a.string,title_shadow:i.a.bool,type:i.a.string,url:i.a.string,youtube_key:i.a.string,content:i.a.string})},1773:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a}));var n="VIDEO_POPUP_ID",i=new RegExp("(?:https?//)?vimeo.com[\\w/]*/(\\d+)$"),a=(new RegExp("(?:https?//)?www.youtube.com/watch\\?v=([\\w\\-]+)"),new RegExp("(?:https?//)?www.youtube.com/(?:watch\\?v=|embed/)([\\w\\-]+)"))},1774:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(11),c=r(5),u=r(6),l=r(1),d=r(18),p=r(1790),h=r(41),g=(r(62),r(52)),f=r(94),v=r.e(30).then(r.bind(null,46)),y=e.middleware((function(e){return{customer:e.MyAccountReducer.customer}}),"PeggysagePwa/Component/RestrictedContentOverlay/Container/mapStateToProps"),m=e.middleware((function(e){return{requestCustomerData:function(){return v.then((function(t){return t.default.requestCustomerData(e)}))}}}),"PeggysagePwa/Component/RestrictedContentOverlay/Container/mapDispatchToProps"),b=r(13).checkBEMProps,P=e.middleware((i=function(e){Object(c.a)(r,e);var t=Object(u.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))).state={userGroupId:0},e.containerFunctions={onClickSignin:e.onClickSignin.bind(Object(s.a)(e))},e}return Object(o.a)(r,[{key:"componentDidMount",value:function(){this.getCustomerGroup()}},{key:"componentDidUpdate",value:function(e){var t=this.props.customer,r=(t=void 0===t?{}:t).group_id,n=void 0===r?0:r,i=e.customer,a=(i=void 0===i?{}:i).group_id;n!==(void 0===a?0:a)&&this.getCustomerGroup()}},{key:"getCustomerGroup",value:function(){var e=this.props.customer,t=(e=void 0===e?{}:e).group_id,r=void 0===t?0:t;this.setState({userGroupId:r})}},{key:"containerProps",value:function(){var e=this.props,t=e.allowedCustomerGroupIds,r=e.isWithSigninLink,n=e.isStrict;return{allowedCustomerGroupIds:t,userGroupId:this.state.userGroupId,isWithSigninLink:r,isStrict:n}}},{key:"onClickSignin",value:function(){this.props.isWithSigninLink&&g.a.push(Object(f.a)(h.h))}},{key:"render",value:function(){return b(n,p.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(l.PureComponent)),i.defaultProps={allowedCustomerGroupIds:[],isWithSigninLink:!1,isStrict:!1},i),"PeggysagePwa/Component/RestrictedContentOverlay/Container");t.a=Object(d.b)(y,m)(P)}).call(this,r(9).default,r(1))},1776:function(e,t,r){"use strict";
vendor: 4,633 bytes, line 1
1(function(e){var n=r(31),i=r(3),a=r(4),o=r(19),s=r(17),c=r(5),u=r(6),l=r(2),d=r(18),p=r(1816),h=r(105),g=r(1817),f=r(16),v=r(451),y=r(52),m=r(34),b=r(57),P=r(94);function C(){C=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),o=new w(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return L()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=P(o,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,o),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(x){return{type:"throw",arg:x}}}e.wrap=c;var l={};function d(){}function p(){}function h(){}var g={};s(g,i,(function(){return this}));var f=Object.getPrototypeOf,v=f&&f(f(j([])));v&&v!==t&&r.call(v,i)&&(g=v);var y=h.prototype=d.prototype=Object.create(g);function m(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function P(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,l;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,o,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},m(b.prototype),s(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new b(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},m(y),s(y,o,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
1h(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}var k=e.middleware((function(e){return Object(l.a)({},Object(g.c)(e))}),"PeggysagePwa/Component/MyAccountSignIn/Container/mapStateToProps"),O=e.middleware((function(e){return Object(l.a)({},Object(g.b)(e))}),"PeggysagePwa/Component/MyAccountSignIn/Container/mapDispatchToProps"),w=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),o=0;o<n;o++)a[o]=arguments[o];return(e=t.call.apply(t,[this].concat(a))).state=Object(l.a)(Object(l.a)({},e.state),{},{emailValue:""}),e}return Object(a.a)(r,[{key:"componentDidMount",value:function(){this.setEmailValue()}},{key:"setEmailValue",value:function(){var e=this.props.emailValue;this.setState({emailValue:e||f.a.getItem(p.a)||""})}},{key:"containerProps",value:function(){var e=this.state.emailValue;return Object(l.a)(Object(l.a)({},Object(o.a)(Object(s.a)(r.prototype),"containerProps",this).call(this)),{},{emailValue:e})}},{key:"onSignInSuccess",value:function(){var e=Object(n.a)(C().mark((function e(t,r){var n,i,a,o,s,c,u,l,d,g,k,O;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.props,i=n.signIn,a=n.showNotification,o=n.onSignIn,s=n.setLoadingState,c=n.totals.is_virtual,u=n.isCheckout,l=this.state.isSignIn,s(!0),d=Object(v.a)(r),l){e.next=20;break}return this.setState({isSignIn:!0}),e.prev=6,e.next=9,i(d);case 9:(g=Object(P.d)("returnUrl",location))?y.a.push("".concat(g).concat(location.hash)):o(),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(6),a("error",Object(m.h)(e.t0)),this.setState({isSignIn:!1});case 17:return e.prev=17,s(!1),e.finish(17);case 20:s(!1),k=d.remember_me,O=d.email,k?f.a.setItem(O,p.a,b.b):f.a.deleteItem(p.a),c&&u?y.a.push({pathname:Object(P.a)(h.b)}):!c&&u&&y.a.push({pathname:Object(P.a)(h.p)});case 24:case"end":return e.stop()}}),e,this,[[6,13,17,20]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(e.Extensible(g.a)),"PeggysagePwa/Component/MyAccountSignIn/Container");t.a=Object(d.b)(k,O)(w)}).call(this,r(9).default)},1779:function(e,t,r){"use strict";(function(e){var n,i=r(3),a=r(4),o=r(11),s=r(19),c=r(17),u=r(5),l=r(6),d=r(2),p=r(0),h=r.n(p),g=r(18),f=r(21),v=r(1838),y=e.middleware((function(e){return Object(d.a)({},Object(v.c)(e))}),"PeggysagePwa/Component/Pagination/Container/mapStateToProps"),m=e.middleware((function(e){return Object(d.a)({},Object(v.b)(e))}),"PeggysagePwa/Component/Pagination/Container/mapDispatchToProps"),b=e.middleware((n=function(e){Object(u.a)(r,e);var t=Object(l.a)(r);function r(){var e;Object(i.a)(this,r);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return(e=t.call.apply(t,[this].concat(a))).containerFunctions=Object(d.a)(Object(d.a)({},e.containerFunctions),{},{onShowMoreButtonClick:e.onShowMoreButtonClick.bind(Object(o.a)(e))}),e}return Object(a.a)(r,[{key:"onShowMoreButtonClick",value:function(){var e=this.props.onShowMoreButtonClick;e&&e()}},{key:"containerProps",value:function(){var e=this.props,t=e.pageSize,n=e.pagesCount,i=e.totalItems;return Object(d.a)(Object(d.a)({},Object(s.a)(Object(c.a)(r.prototype),"containerProps",this).call(this)),{},{pageSize:t,pagesCount:n,totalItems:i})}}]),r}(e.Extensible(v.a)),n.propTypes=Object(d.a)(Object(d.a)({},v.a.propTypes),{},{pageSize:h.a.number.isRequired,pagesCount:h.a.number.isRequired,totalItems:h.a.number.isRequired,onShowMoreButtonClick:h.a.func}),n.defaultProps=Object(d.a)(Object(d.a)({},v.a.defaultProps),{},{onShowMoreButtonClick:null}),n),"PeggysagePwa/Component/Pagination/Container");t.a=Object(f.g)(Object(g.b)(y,m)(b))}).call(this,r(9).default)},1780:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(121),d=(r(40
1),r(1334),r(13).checkBEMProps),p=e.middleware((i=function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"getSearchQueryForPage",value:function(){var e=this.props,t=e.getSearchQueryForPage;return t(e.pageNumber)}},{key:"render",value:function(){var e=this.props,t=e.label,r=e.url_path,i=e.isCurrent,a=e.children,o=this.getSearchQueryForPage(),s=(history.state||{}).state,c=void 0===s?{}:s;return d(n,l.a,{to:{search:o,pathname:r,state:c},"aria-label":t,block:"PaginationLink",mods:{isCurrent:i,isArrow:"string"!==typeof a},"aria-current":i?"page":"false"},a)}}]),r}(e.Extensible(u.PureComponent)),i.defaultProps={children:[]},i),"Component/PaginationLink/Component");t.a=p}).call(this,r(9).default,r(1))},1783:function(e,t,r){"use strict";var n=r(1779);r.d(t,"a",(function(){return n.a}))},1789:function(e,t,r){"use strict";(function(e){var n,i=r(2),a=r(3),o=r(4),s=r(11),c=r(19),u=r(17),l=r(5),d=r(6),p=r(0),h=r.n(p),g=r(1),f=r(18),v=r(21),y=r(152),m=r(1867),b=r(112),P=r(94),C=(r(1325),e.middleware((n=function(e){Object(l.a)(r,e);var t=Object(d.a)(r);function r(){var e;Object(a.a)(this,r);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(e=t.call.apply(t,[this].concat(o))).containerFunctions=Object(i.a)(Object(i.a)({},e.containerFunctions),{},{onShowMoreButtonClick:e.onShowMoreButtonClick.bind(Object(s.a)(e))}),e.productListRef=Object(g.createRef)(),e.lastRequestSignature=null,e.lastInfoRequestSignature=null,e}return Object(o.a)(r,[{key:"componentDidMount",value:function(){Object(c.a)(Object(u.a)(r.prototype),"componentDidMount",this).call(this),this.handleProductSlider()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.sort,n=t.search,i=t.filter,a=t.pages,o=e.sort,s=e.search,c=e.filter,u=e.location,l=this.state.pagesCount,d=Object.keys(a).length;l!==d&&this.setState({pagesCount:d});var p=this._getPageFromUrl(u),h=this._getPageFromUrl();(n!==s||h!==p&&!this._getIsInfiniteLoaderEnabled()||JSON.stringify(r)!==JSON.stringify(o)||JSON.stringify(i)!==JSON.stringify(c))&&this.requestPage(this._getPageFromUrl()),this.handleProductSlider()}},{key:"handleProductSlider",value:function(){if(this.props.isWidget){var e=this.productListRef.current;e&&(e.closest('[data-content-type="products"][data-appearance="carousel"]')?this._createCmsSlider(e):e.closest('[data-content-type="Tutorial_Step"]')?this._createTutorialStepSlider(e):e.closest(".PushCollectionHomepage")&&this._createPushCollectionSlider(e))}}},{key:"_initSlider",value:function(e,t){e.classList.add("swiper"),e.querySelector(".ProductListPage").classList.add("swiper-wrapper"),Array.from(e.querySelectorAll(".ProductCard")).forEach((function(e){e.classList.add("swiper-slide")}));new y.f(e,t)}},{key:"_createCmsSlider",value:function(e){var t=!!e.closest(".Tutorial-Products"),r=t?810:0,n=e.closest('[data-content-type="products"][data-appearance="carousel"]'),i=n&&n.className&&-1!==n.className.indexOf("largeur100")?1:null;if(window.innerWidth<r)this._destroySlider(e);else if(null==(e.classList.contains("swiper")?e.swiper:null)){var a={modules:[y.a,y.b,y.c,y.d,y.e],loop:!1,slidesPerView:2,spaceBetween:20,centerInsufficientSlides:!0,freeMode:{enabled:!0,sticky:!0,momentumBounce:!1,momentumRatio:.5},breakpoints:{810:{slidesPerView:null!==i&&void 0!==i?i:3},1024:{slidesPerView:null!==i&&void 0!==i?i:4}}};if(n.getAttribute("data-max-items")){a.breakpoints[1280]={slidesPerView:n.getAttribute("data-max-items")}}if("true"===n.getAttribute("data-show-arrows")){var o=document.createElement("div");o.className="swiper-button-prev",e.after(o);var s=document.createElement("div");s.className="swiper-button-next",e.after(s),a.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}}if("true"===n.getAttribute("data-show-dots"))if(t){var c=document.createElement("div");c.className="swiper-scrollbar",e.appendChild(c),a.scrollbar={el:".swiper-scrollbar",draggable:!0,hide:!1,snapOnRelease:!0}}else{var u=document.createElement("div");u.className="swiper-pagination",e.appendChild(u),a.pagination={clickable:!0,type:"bullets",el:".swiper-pagination"}}"true"===n.getAttribute("data-autoplay")&&(a.autoplay={delay:parseInt(n.getAttribute("data-autoplay-speed"),10),pauseOnMouseEnter:!0,disableOnInteraction:!1}),"true"===n.getAttribute("data-infinite-loop")&&(a.loop=!0,a.scrollbar&&(a.scrollbar.enabled=!1)),this._initSlider(e,a)}}},{key:"_createTutorialStepSlider",value:function(e){if(window.innerWidth<810)this._destroySlider(e);else if(null==(e.classList.contains("swiper")?e.swiper:null)){var t={modules:[y.b,y.d],slidesPerView:"auto",spaceBetween:20,freeMode:{enabled:!0,sticky:!0,momentumBounce:!1,momentumRatio:.5},pagination:{clickable:!0,type:"bullets",el:".swiper-pagination"}},r=document.createElement("div");r.className="swiper-pagination",e.appendChild(r),this._initSlider(e,t)}}},{key:"_createPushCollectionSlider",value:function(e){if(window.innerWidth<810)this._destroySlider(e);else if(null==(e.classList.contains("swiper")?e.swiper:null)){var t={modules:[y.b,y.e],slidesPerView:"auto",spaceBetween:20,freeMode:{enabled:!0,sticky:!0,momentumBounce:!1,momentumRatio:.5},scrollbar:{el:".swiper-scrollbar",draggable:!0,hide:!1,snapOnRelease:!0}},r=document.createElement("div");r.className="swiper-scrollbar",e.appendChild(r),this._initSlider(e,t)}}},{key:"_destroySlider",value:function(e){var t=e.classList.contains("swiper")?e.swiper:null;
1null!==t&&(t.destroy(!0,!0),t=null,e.classList.remove("swiper"),e.querySelector(".ProductListPage").classList.remove("swiper-wrapper"),Array.from(e.querySelectorAll(".ProductCard")).forEach((function(e){e.classList.remove("swiper-slide")})),e.querySelector(".swiper-scrollbar")&&e.querySelector(".swiper-scrollbar").remove(),e.parentNode.querySelector(".swiper-pagination")&&Array.from(e.querySelectorAll(".swiper-pagination")).forEach((function(e){e.remove()})),e.parentNode.querySelector(".swiper-button-prev")&&Array.from(e.querySelectorAll(".swiper-button-prev")).forEach((function(e){e.remove()})),e.parentNode.querySelector(".swiper-button-next")&&Array.from(e.querySelectorAll(".swiper-button-next")).forEach((function(e){e.remove()})))}},{key:"onShowMoreButtonClick",value:function(){this.loadPage()}},{key:"requestPage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.props,n=r.sort,i=r.search,a=r.filter,o=r.pageSize,s=r.requestProductList,c=r.requestProductListInfo,u=r.noAttributes,l=r.noVariants,d=r.isWidget;if(-1!==a.categoryIds&&(i||this.isEmptyFilter())){var p={isNext:t,noAttributes:u,noVariants:l,args:{sort:n,filter:a,search:i,pageSize:o,currentPage:e}},h={args:{filter:a,search:i}},g=JSON.stringify(p);if(g!==this.lastRequestSignature&&(this.lastRequestSignature=g,s(p)),!d){var f=JSON.stringify(h);f!==this.lastInfoRequestSignature&&(this.lastInfoRequestSignature=f,c(h))}}}},{key:"updatePage",value:function(e){var t=this.props,r=t.location,n=t.history;Object(P.j)({page:1===e?"":e},r,n)}},{key:"containerProps",value:function(){var e=this.props,t=e.contentPushes,n=e.pageSize,a=e.totalItems,o=e.isPageLoading,s=e.categoryId;return Object(i.a)(Object(i.a)({},Object(c.a)(Object(u.a)(r.prototype),"containerProps",this).call(this)),{},{productListRef:this.productListRef,contentPushes:t,pageSize:n,totalItems:a,isPageLoading:o,categoryId:s})}},{key:"_getIsInfiniteLoaderEnabled",value:function(){return this.props.isInfiniteLoaderEnabled}}]),r}(e.Extensible(m.a)),n.propTypes=Object(i.a)(Object(i.a)({},m.a.propTypes),{},{contentPushes:h.a.arrayOf(b.a),categoryId:h.a.number}),n.defaultProps=Object(i.a)(Object(i.a)({},m.a.defaultProps),{},{contentPushes:[],categoryId:null}),n),"PeggysagePwa/Component/ProductList/Container"));t.a=Object(v.g)(Object(f.b)(m.c,m.b)(C))}).call(this,r(9).default)},1790:function(e,t,r){"use strict";(function(e,n,i){var a,o=r(3),s=r(4),c=r(5),u=r(6),l=r(1),d=r(41),p=(r(1328),r(13).checkBEMProps),h=e.middleware((a=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"renderRestrictedContentLoggedIn",value:function(){var e=this.props,t=e.allowedCustomerGroupIds,r=e.userGroupId,a=e.onClickSignin,o=e.isWithSigninLink;return e.isStrict&&t.includes(0)&&t.includes(0)&&1!==r&&0!==r?p(n,"button",{block:"RestrictedContentOverlay",elem:"Content",title:i("R\xe9serv\xe9 aux particuliers"),"aria-label":i("R\xe9serv\xe9 aux particuliers")}):t.includes(1)&&1!==r?p(n,"button",{block:"RestrictedContentOverlay",elem:"Content",mods:{isWithSigninLink:o},title:"".concat(i("R\xe9serv\xe9 aux")," ").concat(i("utilisateurs connect\xe9s")),onClick:a,"aria-label":"".concat(i("R\xe9serv\xe9 aux")," ").concat(i("utilisateurs connect\xe9s"))}):null}},{key:"renderRestrictedContentPro",value:function(){var e=this.props,t=e.allowedCustomerGroupIds,r=e.userGroupId,a=e.onClickSignin,o=e.isWithSigninLink;return t.includes(d.x)&&r!==d.x||t.includes(d.w)&&r!==d.x?p(n,"button",{block:"RestrictedContentOverlay",elem:"Content",mods:{pro:!0,isWithSigninLink:o},title:"".concat(i("R\xe9serv\xe9 aux")," ").concat(d.v[d.x].plural.toLowerCase()),onClick:a,"aria-label":"".concat(i("R\xe9serv\xe9 aux")," ").concat(d.v[d.x].plural.toLowerCase())},p(n,"span",null,p(n,"strong",null,d.v[d.x].singular))):null}},{key:"renderRestrictedContentStudent",value:function(){var e=this.props,t=e.allowedCustomerGroupIds,r=e.userGroupId,a=e.onClickSignin,o=e.isWithSigninLink;return t.includes(d.y)&&r!==d.y?p(n,"button",{block:"RestrictedContentOverlay",elem:"Content",mods:{student:!0,isWithSigninLink:o},title:"".concat(i("R\xe9serv\xe9 aux")," ").concat(d.v[d.y].plural.toLowerCase()),onClick:a,"aria-label":"".concat(i("R\xe9serv\xe9 aux")," ").concat(d.v[d.y].plural.toLowerCase())},p(n,"span",null,p(n,"strong",null,d.v[d.y].singular))):null}},{key:"render",value:function(){var e=this.props,t=e.allowedCustomerGroupIds,r=e.userGroupId,i=e.isStrict;return!t.length||t.includes(0)&&!i||t.includes(r)?null:p(n,"div",{block:"RestrictedContentOverlay"},this.renderRestrictedContentLoggedIn(),this.renderRestrictedContentPro(),this.renderRestrictedContentStudent())}}]),r}(e.Extensible(l.PureComponent)),a.defaultProps={userGroupId:0,isWithSigninLink:!1,isStrict:!1},a),"PeggysagePwa/Component/RestrictedContentOverlay/Component");t.a=h}).call(this,r(9).default,r(1),r(28).default)},1791:function(e,t,r){"use strict";var n=r(1774);r.d(t,"a",(function(){return n.a}))},1800:function(e,t,r){"use strict";r.r(t),function(e,n){r.d(t,"ProductListInfoDispatcher",(function(){return v}));
1var i=r(2),a=r(3),o=r(4),s=r(19),c=r(17),u=r(5),l=r(6),d=r(134),p=r(456),h=r(39),g=r(374),f=r(34),v=e.middleware(function(e){Object(u.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(s.a)(Object(c.a)(r.prototype),"__construct",this).call(this,"ProductListInfo")}},{key:"onSuccess",value:function(e,t,r){var n=e.products,i=r.args.filter;t(Object(g.d)(n,i))}},{key:"onError",value:function(e,t){t(Object(h.f)("error",n("Error fetching Product List Information!"),e)),t(Object(p.b)(!0))}},{key:"prepareRequest",value:function(e,t){return t(Object(g.c)(!0)),d.b.getQuery(Object(i.a)(Object(i.a)({},e),{},{requireInfo:!0}))}}]),r}(e.Extensible(f.b)),"Store/ProductListInfo/Dispatcher");t.default=new v}.call(this,r(9).default,r(28).default)},1803:function(e,t,r){"use strict";var n=r(1776);r.d(t,"a",(function(){return n.a}))},1816:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n="cookie_signin_email"},1817:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return O})),r.d(t,"b",(function(){return w})),r.d(t,"a",(function(){return L}));var i,a=r(31),o=r(3),s=r(4),c=r(11),u=r(5),l=r(6),d=r(1),p=r(18),h=r(105),g=r(39),f=(r(275),r(38)),v=r(451),y=r(52),m=r(34),b=r(94),P=r(1818);function C(){C=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),o=new w(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return L()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=P(o,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,o),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(x){return{type:"throw",arg:x}}}e.wrap=c;var l={};function d(){}function p(){}function h(){}var g={};s(g,i,(function(){return this}));var f=Object.getPrototypeOf,v=f&&f(f(j([])));v&&v!==t&&r.call(v,i)&&(g=v);var y=h.prototype=d.prototype=Object.create(g);function m(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function P(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,l;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var t=e[i];if(t)return t.call(e);
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,s(y,"constructor",h),s(h,"constructor",p),p.displayName=s(h,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,o,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},m(b.prototype),s(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new b(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},m(y),s(y,o,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}var k=r.e(30).then(r.bind(null,46)),O=e.middleware((function(e){return{isEmailAvailable:e.CheckoutReducer.isEmailAvailable,isLocked:e.MyAccountReducer.isLocked,totals:e.CartReducer.cartTotals}}),"Component/MyAccountSignIn/Container/mapStateToProps"),w=e.middleware((function(e){return{signIn:function(t){return k.then((function(r){return r.default.signIn(t,e)}))},showNotification:function(t,r){return e(Object(g.f)(t,r))}}}),"Component/MyAccountSignIn/Container/mapDispatchToProps"),j=r(13).checkBEMProps,L=e.middleware((i=function(e){Object(u.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))).state={isSignIn:!1},e.containerFunctions={onSignInSuccess:e.onSignInSuccess.bind(Object(c.a)(e))},e}
1return Object(s.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isCheckout,n=t.isEmailAvailable,i=t.setSignInState,a=e.isEmailAvailable;r&&n&&!a&&i("")}},{key:"containerProps",value:function(){var e=this.props;return{state:e.state,onFormError:e.onFormError,handleForgotPassword:e.handleForgotPassword,handleCreateAccount:e.handleCreateAccount,isCheckout:e.isCheckout,setLoadingState:e.setLoadingState,emailValue:e.emailValue,handleEmailInput:e.handleEmailInput,isLoading:e.isLoading}}},{key:"onSignInSuccess",value:function(){var e=Object(a.a)(C().mark((function e(t,r){var n,i,a,o,s,c,u,l,d;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.props,i=n.signIn,a=n.showNotification,o=n.onSignIn,s=n.setLoadingState,c=n.totals.is_virtual,u=n.isCheckout,l=this.state.isSignIn,s(!0),d=Object(v.a)(r),l){e.next=19;break}return this.setState({isSignIn:!0}),e.prev=6,e.next=9,i(d);case 9:o(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),a("error",Object(m.h)(e.t0)),this.setState({isSignIn:!1});case 16:return e.prev=16,s(!1),e.finish(16);case 19:s(!1),c&&u?y.a.push({pathname:Object(b.a)(h.b)}):!c&&u&&y.a.push({pathname:Object(b.a)(h.p)});case 21:case"end":return e.stop()}}),e,this,[[6,12,16,19]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"render",value:function(){return j(n,P.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(d.PureComponent)),i.defaultProps={emailValue:"",isEmailAvailable:!0,setSignInState:f.e,handleEmailInput:f.e,isLoading:!1},i),"Component/MyAccountSignIn/Container");Object(p.b)(O,w)(L)}).call(this,r(9).default,r(1))},1818:function(e,t,r){"use strict";(function(e,n,i){var a=r(3),o=r(4),s=r(5),c=r(6),u=r(45),l=r(14),d=r(452),p=r(51),h=r(1819),g=r(85),f=r(49),v=r(13).checkBEMProps,y=e.middleware(function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"renderSignInForm",value:function(){var e=this.props,t=e.onSignInSuccess,r=e.onFormError,a=e.handleForgotPassword,o=e.emailValue,s=e.isCheckout,c=e.handleEmailInput,h=e.isLoading;return v(n,d.a,{key:"sign-in",onSubmit:t,onError:r,attr:{autoComplete:"on"}},v(n,u.a,{label:i("Email"),type:l.c.email,attr:{id:"email",name:"email",placeholder:i("Your email address"),defaultValue:o,autoComplete:s?"off":"email"},validateOn:["onChange"],validationRule:{isRequired:!0,inputType:f.a.email,match:function(e){return Object(g.b)(e)}},events:{onChange:c},addRequiredTag:!0}),v(n,u.a,{label:i("Password"),type:l.c.password,attr:{id:"password",name:"password",placeholder:i("Enter your password"),autoComplete:"current-password"},validateOn:s?["onSubmit"]:["onChange"],validationRule:{isRequired:!0,inputType:f.a.password},addRequiredTag:!0}),v(n,u.a,{label:i("Remember me"),type:l.c.checkbox,attr:{id:"remember_me",name:"remember_me",value:"remember_me",defaultChecked:!0}}),v(n,"button",{type:"button",block:"Button",mods:{likeLink:!0},mix:{block:"MyAccountOverlay",elem:"ForgotPassword"},onClick:a},i("Forgot password?")),v(n,"div",{block:"MyAccountOverlay",elem:"SignInButton"},v(n,"button",{block:"Button"},i("Sign me in"))),v(n,p.a,{isLoading:h}))}},{key:"render",value:function(){return v(n,n.Fragment,null,this.renderSignInForm())}}]),r}(e.Extensible(h.a)),"PeggysagePwa/Component/MyAccountSignIn/Component");t.a=y}).call(this,r(9).default,r(1),r(28).default)},1819:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return y}));var a,o=r(3),s=r(4),c=r(5),u=r(6),l=r(1),d=r(45),p=r(14),h=r(452),g=r(51),f=(r(62),r(49)),v=(r(1331),r(13).checkBEMProps),y=e.middleware((a=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"renderSignInForm",value:function(){var e=this.props,t=e.onSignInSuccess,r=e.onFormError,a=e.handleForgotPassword,o=e.emailValue,s=e.isCheckout,c=e.handleEmailInput,u=e.isLoading;return v(n,h.a,{key:"sign-in",onSubmit:t,onError:r},v(n,d.a,{label:i("Email"),type:p.c.email,attr:{id:"email",name:"email",placeholder:i("Your email address"),defaultValue:o,autocomplete:s?"off":"email"},validateOn:["onChange"],validationRule:{isRequired:!0,inputType:f.a.email},events:{onChange:c},addRequiredTag:!0}),v(n,d.a,{label:i("Password"),type:p.c.password,attr:{id:"password",name:"password",placeholder:i("Enter your password"),autocomplete:"current-password"}
1,validateOn:s?["onSubmit"]:["onChange"],validationRule:{isRequired:!0,inputType:f.a.password},addRequiredTag:!0}),v(n,"button",{type:"button",block:"Button",mods:{likeLink:!0},mix:{block:"MyAccountOverlay",elem:"ForgotPassword"},onClick:a},i("Forgot password?")),v(n,"div",{block:"MyAccountOverlay",elem:"SignInButton"},v(n,"button",{block:"Button"},i("Sign in"))),v(n,g.a,{isLoading:u}))}},{key:"renderAdditionalField",value:function(){var e=this.props,t=e.isCheckout,r=e.handleCreateAccount,a=e.state;return t?null:v(n,"article",{block:"MyAccountOverlay",elem:"Additional",mods:{state:a}},v(n,"section",null,v(n,"h4",{id:"forgot-password-label"},i("Don't have an account?")),v(n,"button",{block:"Button",mods:{likeLink:!0},onClick:r},i("Create an account"))))}},{key:"render",value:function(){return v(n,n.Fragment,null,this.renderSignInForm(),this.renderAdditionalField())}}]),r}(e.Extensible(l.PureComponent)),a.defaultProps={isLoading:!1},a),"Component/MyAccountSignIn/Component")}).call(this,r(9).default,r(1),r(28).default)},1822:function(e,t,r){"use strict";(function(e){var n=r(2),i=r(18),a=r(1933),o=r(1823),s=e.middleware((function(e){return Object(n.a)({},Object(a.b)(e))}),"PeggysagePwa/Component/VideoPopup/Container/mapStateToProps"),c=e.middleware((function(e){return Object(n.a)({},Object(a.a)(e))}),"PeggysagePwa/Component/VideoPopup/Container/mapDispatchToProps");t.a=Object(i.b)(s,c)(o.a)}).call(this,r(9).default)},1823:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(4),o=r(5),s=r(6),c=r(164),u=r(1934),l=r(1773),d=(r(1355),r(13).checkBEMProps),p=e.middleware(function(e){Object(o.a)(r,e);var t=Object(s.a)(r);function r(){return Object(i.a)(this,r),t.apply(this,arguments)}return Object(a.a)(r,[{key:"_renderYoutubeVideo",value:function(e){var t=this.youTubeComponent;return t?d(n,t,{videoId:e,containerClassName:"VideoPopup-YouTubeContainer",className:"VideoPopup-YouTube",opts:{playerVars:{autoplay:1,rel:0}}}):null}},{key:"render",value:function(){return d(n,c.a,{id:l.a,mix:{block:"VideoPopup"}},d(n,"div",{block:"VideoPopup",elem:"VideoPlayerWrapper"},d(n,"div",{block:"VideoPopup",elem:"VideoPlayer"},d(n,"div",{block:"VideoPopup",elem:"PlayerContent"},this._renderVideoContent()))))}}]),r}(e.Extensible(u.a)),"PeggysagePwa/Component/VideoPopup/Component");t.a=p}).call(this,r(9).default,r(1))},1835:function(e,t,r){"use strict";var n=r(0),i=r.n(n);i.a.shape({collection_category_name:i.a.string,name:i.a.string,description:i.a.string,url:i.a.string,image_collection_ambiance:i.a.string})},1838:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return v})),r.d(t,"b",(function(){return y})),r.d(t,"a",(function(){return b}));var i,a=r(3),o=r(4),s=r(11),c=r(5),u=r(6),l=r(1),d=r(18),p=r(21),h=r(1843),g=(r(40),r(133),r(94)),f=r(1839),v=e.middleware((function(e){return{paginationFrame:e.ConfigReducer.pagination_frame,paginationFrameSkip:e.ConfigReducer.pagination_frame_skip,anchorTextPrevious:e.ConfigReducer.anchor_text_for_previous,anchorTextNext:e.ConfigReducer.anchor_text_for_next}}),"Component/Pagination/Container/mapStateToProps"),y=e.middleware((function(){return{}}),"Component/Pagination/Container/mapDispatchToProps"),m=r(13).checkBEMProps,b=e.middleware((i=function(e){Object(c.a)(r,e);var t=Object(u.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={getSearchQuery:e.getSearchQuery.bind(Object(s.a)(e))},e}return Object(o.a)(r,[{key:"getSearchQuery",value:function(e){var t=this.props,r=t.history,n=t.location,i=1!==e?e:"";return Object(g.c)({page:i},n,r)}},{key:"containerProps",value:function(){var e=this.props,t=e.anchorTextNext,r=e.anchorTextPrevious,n=e.id,i=e.isLoading,a=e.paginationFrame,o=e.totalPages;return{anchorTextNext:t,anchorTextPrevious:r,id:n,isLoading:i,paginationFrame:a,pathname:e.location.pathname,totalPages:o,mix:e.mix,currentPage:this._getCurrentPage(),prevPageJump:this._getPrevPageJump(),nextPageJump:this._getNextPageJump(),firstFramePage:this._getFirstFramePage(),lastFramePage:this._getLastFramePage(),shouldRenderNextJump:this._shouldRenderNextJump(),shouldRenderPreviousJump:this._shouldRenderPreviousJump(),shouldRenderJumps:this._shouldRenderJumps()}}},{key:"_getCurrentPage",value:function(){var e=this.props.location;return+(Object(g.d)("page",e)||1)}},{key:"_getFirstFramePage",value:function(){var e=this.props,t=e.paginationFrame,r=e.totalPages,n=this._getCurrentPage()-Math.ceil(t/2)+1,i=r-t+1;return Math.max(1,Math.min(n,i))}},{key:"_getLastFramePage",value:function(){var e=this.props,t=e.paginationFrame,r=e.totalPages;return Math.min(r,this._getFirstFramePage()+t-1)}},{key:"_getPrevPageJump",value:function(){var e=this.props.paginationFrameSkip;return Math.max(h.a,this._getFirstFramePage()-e)}},{key:"_getNextPageJump",value:function(){var e=this.props,t=e.paginationFrameSkip,r=e.totalPages;return Math.min(r-1,this._getLastFramePage()+t)}},{key:"_shouldRenderJumps",value:function(){var e=this.props.paginationFrameSkip;return!(!e||e<2)}},{key:"_shouldRenderNextJump",value:function(){var e=this.props.totalPages;return!!this._shouldRenderJumps()&&e-this._getLastFramePage()>=h.a}},{key:"_shouldRenderPreviousJump",value:function(){return!!this._shouldRenderJumps()&&this._getFirstFramePage()>h.a}},{key:"render",value:function(){return m(n,f.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(l.PureComponent)),i.defaultProps={isLoading:!1,paginationFrame:5,paginationFrameSkip:null,anchorTextPrevious:"",anchorTextNext:"",id:"",mix:{}},i),"Component/Pagination/Container");Object(p.g)(Object(d.b)(v,y)(b))}).call(this,r(9).default,r(1))},1839:function(e,t,r){"use strict";(function(e,n){var i,a=r(2),o=r(3),s=r(4),c=r(5),u=r(6),l=r(0),d=r.n(l),p=r(1),h=r.n(p),g=r(1840),f=(r(1336),r(13).checkBEMProps),v=e.middleware((i=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"renderShowMoreButton",value:function(){var e=this.props,t=e.currentPage,r=e.totalPages,i=e.pagesCount,a=e.totalItems,o=e.onShowMoreButtonClick;return a&&t!==r&&i!==r?f(h.a,"button",{type:"button",block:"Button",mods:{isHollow:!0},mix:{block:"Pagination",elem:"Button"},onClick:o},n("Show more products")):null}},{key:"render",value:function(){var e=this.props,t=e.isLoading,r=e.id,i=e.mix,a=e.totalPages,o=e.pageSize,s=e.pagesCount,c=e.totalItems;if(t)return this.renderPlaceholder();var u=s===a?c:s*o;return f(h.a,"div",{block:"Pagination",id:r,mix:i},f(h.a,"p",null,n("%s products on %s",u,c)),this.renderShowMoreButton())}}]),r}(e.Extensible(g.a)),i.propTypes=Object(a.a)(Object(a.a)({},g.a.propTypes),{},{pageSize:d.a.number.isRequired,pagesCount:d.a.number.isRequired,totalItems:d.a.number.isRequired,onShowMoreButtonClick:d.a.func.isRequired}),i),"PeggysagePwa/Component/Pagination/Component");t.a=v}).call(this,r(9).default,r(28).default)},1840:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return v}));var a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(92),d=r(58),p=r(1841),h=r(76),g=(r(40),r(198)),f=(r(1335),r(13).checkBEMProps),v=e.middleware(function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"renderPreviousPageLink",value:function(){var e=this.props,t=e.anchorTextPrevious,r=e.currentPage,a=e.totalPages,o=e.paginationFrame;return r<=1||o>=a?f(n,"li",{block:"Pagination",elem:"ListItem"}):this.renderPageLink(r-1,i("Previous page"),t||this.renderPageIcon())}},{key:"renderPageLinks",value:function(){var e=this,t=this.props,r=t.currentPage,n=t.firstFramePage,a=t.lastFramePage;return Object(g.a)(n,a).map((function(t){return e.renderPageLink(t,i("Page %s",t),t.toString(),t===r)}))}},{key:"renderPageIcon",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return f(n,l.a,{direction:e?d.c:d.b})}},{key:"renderNextPageLink",value:function(){var e=this.props,t=e.anchorTextNext,r=e.currentPage,a=e.totalPages,o=e.paginationFrame;return r>a-1||o>=a?f(n,"li",{block:"Pagination",elem:"ListItem"}):this.renderPageLink(r+1,i("Next page"),t||this.renderPageIcon(!0))}},{key:"renderPageLink",value:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=this.props,o=a.pathname,s=a.getSearchQuery;return f(n,"li",{key:e,block:"Pagination",elem:"ListItem"},f(n,p.a,{label:t,url_path:o,isCurrent:i,pageNumber:e,getSearchQueryForPage:s},r))}},{key:"renderFirstPageLink",value:function(){var e=this.props,t=e.shouldRenderJumps,r=e.firstFramePage;return t&&1!==r?this.renderPageLink(1,i("Page %s",1),"1"):null}},{key:"renderLastPageLink",value:function(){var e=this.props,t=e.totalPages,r=e.shouldRenderJumps,n=e.lastFramePage;return r&&n!==t?this.renderPageLink(t,i("Page %s",t),t.toString()):null}},{key:"renderPreviousJump",value:function(){var e=this.props,t=e.prevPageJump;return e.shouldRenderPreviousJump?this.renderPageLink(t,i("Page %s",t),"..."):null}},{key:"renderNextJump",value:function(){var e=this.props,t=e.nextPageJump;return e.shouldRenderNextJump?this.renderPageLink(t,i("Page %s",t),"..."):null}},{key:"renderPlaceholder",value:function(){return f(n,"ul",{block:"Pagination",mods:{isLoading:!0}},Array.from({length:4},(function(e,t){return f(n,"li",{key:t,block:"Pagination",elem:"ListItem"},f(n,h.a,{length:"block"}))})))}},{key:"render",value:function(){var e=this.props,t=e.isLoading,r=e.totalPages,a=e.id,o=e.mix;return 1===r?f(n,"ul",{block:"Pagination"}):t?this.renderPlaceholder():f(n,"nav",{"aria-label":i("List navigation")},f(n,"ul",{block:"Pagination",id:a,mix:o},this.renderPreviousPageLink(),this.renderFirstPageLink(),this.renderPreviousJump(),this.renderPageLinks(),this.renderNextJump(),this.renderLastPageLink(),this.renderNextPageLink()))}}]),r}(e.Extensible(u.PureComponent)),"Component/Pagination/Component")}).call(this,r(9).default,r(1),r(28).default)},1841:function(e,t,r){"use strict";var n=r(1780);r.d(t,"a",(function(){return n.a}))},1843:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=2},1847:function(e,t,r){"use strict";var n=r(1789);r.d(t,"a",(function(){return n.a}))},1848:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return j}));var a,o=r(3),s=r(4),c=r(5),u=r(6),l=r(0),d=r.n(l),p=r(1),h=r(2137),g=r(2139),f=r(2011),v=r(2142),y=r(121),m=r(2036),b=r(1904),P=r(67),C=r(2014),k=r(36),O=r(111),w=(r(1420),r(13).checkBEMProps),j=e.middleware((a=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"renderQuickAccessItem",value:function(e){var t=e.id,r=e.name,i=e.url;return w(n,"div",{block:"CategoryPage",elem:"QuickAccessItem",key:t},w(n,y.a,{block:"CategoryPage",elem:"QuickAccessItemLink",to:i},r))}},{key:"renderNoAccess",value:function(){var e=this.props.category;return w(n,m.a,{content:e})}},{key:"renderQuickAccess",value:function(){var e=this.props,t=e.category,r=(t=void 0===t?{}:t).children,a=void 0===r?[]:r,o=e.isMobile;if(!e.isCurrentCategoryLoaded||!a||!a.length)return null;var s=a.filter((function(e){return e.is_anchor&&e.url}));return s.length?w(n,"div",{block:"CategoryPage",elem:"QuickAccess"},!o&&w(n,"div",{block:"CategoryPage",elem:"QuickAccessTitle"},i("Quick access:")),w(n,"div",{block:"CategoryPage",elem:"QuickAccessContent"},s.map(this.renderQuickAccessItem.bind(this)))):null}},{key:"renderFiltersCount",value:function(){var e=this.props.appliedFiltersCount;return e?w(n,"span",{block:"CategoryPage",elem:"Subheading"},e):null}},{key:"renderFilterPlaceholder",value:function(){return null}},{key:"renderFilterOverlay",value:function(){var e=this.props,t=e.filters,r=e.selectedFilters,i=e.isMatchingInfoFilter,a=e.isMatchingListFilter,o=e.isSearchPage,s=this.props.category.is_anchor;return this.displayProducts()?w(n,p.Suspense,{fallback:this.renderFilterPlaceholder()},w(n,C.a,{availableFilters:t,customFiltersValues:r,isMatchingListFilter:a,isMatchingInfoFilter:i,isCategoryAnchor:!!s,isSearchPage:o,renderPlaceholder:this.renderPlaceholder})):null}},{key:"renderPushReview",value:function(e){var t=e.title;return w(n,v.a,{review:e,key:btoa(t)})}},{key:"renderPushReviews",value:function(){var e=this.props.category,t=(e=void 0===e?{}:e).avis,r=void 0===t?[]:t;return r&&r.length?w(n,"div",{block:"CategoryPage",elem:"Reviews"},r.map(this.renderPushReview.bind(this))):null}},{key:"renderFeaturedProducts",value:function(){var e=this.props,t=e.category,r=(t=void 0===t?{}:t).id,i=void 0===r?0:r,a=e.isCurrentCategoryLoaded;return Object(k.i)()?w(n,g.a,{categoryId:i,isCurrentCategoryLoaded:a,mix:{block:"CategoryPage",elem:"FeaturedProducts"}}):null}},{key:"displayProducts",value:function(){var e=this.props,t=e.category,r=(t=void 0===t?{}
1:t).display_mode,n=void 0===r?P.c:r,i=t.id,a=e.isSearchPage;return!(!i&&!a)&&(null===n||n===P.c||n===P.a)}},{key:"renderCategoryProductList",value:function(){var e=this.props,t=e.category,r=t.id,i=t.content_push,a=e.filter,o=e.search,s=e.selectedSort,c=e.selectedFilters,u=e.isMatchingListFilter,l=e.isCurrentCategoryLoaded,d=e.isMatchingInfoFilter,p=this.state.activeLayoutType;return this.displayProducts()?w(n,"div",{block:"CategoryPage",elem:"ProductListWrapper",mods:{isPrerendered:Object(O.b)()||Object(O.a)()}},this.renderItemsCount(!0),w(n,f.a,{filter:a,categoryId:r,search:o,sort:s,selectedFilters:c,isCurrentCategoryLoaded:l,isMatchingListFilter:u,isMatchingInfoFilter:d,layout:p||P.d,contentPushes:i})):null}},{key:"renderCategoryDetailsBottom",value:function(){var e=this.props,t=e.category,r=e.isCurrentCategoryLoaded;return w(n,h.a,{category:t,isCurrentCategoryLoaded:r})}},{key:"renderContent",value:function(){var e=this.props,t=e.hasUserAccess,r=e.isMobile;return t?r?w(n,n.Fragment,null,this.renderCategoryDetails(),this.renderQuickAccess(),this.renderMiscellaneous(),this.renderFilterOverlay(),this.renderCmsBlock(),this.renderPushReviews(),this.renderFeaturedProducts(),this.renderCategoryProductList(),this.renderCategoryDetailsBottom(),w(n,b.a,null)):w(n,n.Fragment,null,this.renderCategoryDetails(),this.renderQuickAccess(),this.renderFilterOverlay(),this.renderMiscellaneous(),this.renderCmsBlock(),this.renderPushReviews(),this.renderFeaturedProducts(),this.renderCategoryProductList(),this.renderCategoryDetailsBottom(),w(n,b.a,null)):this.renderNoAccess()}},{key:"renderMiscellaneous",value:function(){return this.displayProducts()?w(n,"aside",{block:"CategoryPage",elem:"Miscellaneous"},this.renderItemsCount(),w(n,"div",{block:"CategoryPage",elem:"MiscellaneousLayoutWrapper"},w(n,"div",{block:"CategoryPage",elem:"LayoutWrapper",mods:{isPrerendered:Object(O.b)()||Object(O.a)()}},this.renderLayoutButtons(),this.renderCategorySort()),w(n,"div",{block:"CategoryPage",elem:"LayoutWrapper",mods:{isPrerendered:Object(O.b)()||Object(O.a)()}},this.renderFilterButton()))):null}}]),r}(e.Extensible(C.b)),a.propTypes={hasUserAccess:d.a.bool.isRequired},a),"PeggysagePwa/Route/CategoryPage/Component");t.b=j}).call(this,r(9).default,r(1),r(28).default)},1861:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(4),o=r(5),s=r(6),c=r(1),u=(r(1835),r(1972)),l=r(13).checkBEMProps,d=e.middleware(function(e){Object(o.a)(r,e);var t=Object(s.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))).containerFunctions={},e}return Object(a.a)(r,[{key:"containerProps",value:function(){return{collection:this.props.collection}}},{key:"render",value:function(){return l(n,u.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(c.PureComponent)),"PeggysagePwa/Component/CollectionCard/Container");t.a=d}).call(this,r(9).default,r(1))},1867:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return b})),r.d(t,"b",(function(){return P})),r.d(t,"a",(function(){return k}));var i,a=r(7),o=r(12),s=r(3),c=r(4),u=r(11),l=r(5),d=r(6),p=r(1),h=r(18),g=r(21),f=r(1800),v=(r(112),r(40),r(193),r(42),r(133),r(111)),y=r(94),m=r(1868),b=e.middleware((function(e){return{device:e.ConfigReducer.device}}),"Component/ProductList/Container/mapStateToProps"),P=e.middleware((function(e){return{requestProductListInfo:function(t){return f.default.handleData(e,t)}}}),"Component/ProductList/Container/mapDispatchToProps"),C=r(13).checkBEMProps,k=e.middleware((i=function(e){Object(l.a)(r,e);var t=Object(d.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))).containerFunctions={loadPrevPage:e.loadPage.bind(Object(u.a)(e),!1),loadPage:e.loadPage.bind(Object(u.a)(e)),updatePage:e.updatePage.bind(Object(u.a)(e))},e.state={pagesCount:1},e}return Object(c.a)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.pages,r=e.isPreventRequest,n=this.state.pagesCount,i=Object.keys(t).length;n!==i&&this.setState({pagesCount:i}),r||this.requestPage(this._getPageFromUrl())}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.sort,n=t.search,i=t.filter,a=t.pages,o=e.sort,s=e.search,c=e.f
1ilter,u=e.location,l=this.state.pagesCount,d=Object.keys(a).length;l!==d&&this.setState({pagesCount:d});var p=this._getPageFromUrl(u),h=this._getPageFromUrl();n===s&&h===p&&JSON.stringify(r)===JSON.stringify(o)&&JSON.stringify(i)===JSON.stringify(c)||this.requestPage(this._getPageFromUrl())}},{key:"isEmptyFilter",value:function(){var e=this.props.filter;return Object.entries(e).filter((function(e){var t=Object(o.a)(e,2),r=t[0],n=t[1];switch(r){case"priceRange":return n.min>0||n.max>0;case"customFilters":return Object.keys(n).length>0;default:return!0}})).length>0}},{key:"requestPage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.props,n=r.sort,i=r.search,a=r.filter,o=r.pageSize,s=r.requestProductList,c=r.requestProductListInfo,u=r.noAttributes,l=r.noVariants,d=r.isWidget,p=r.device;if(-1!==a.categoryIds&&(i||this.isEmptyFilter())){var h={isNext:t,noAttributes:u,noVariants:l,args:{sort:n,filter:a,search:i,pageSize:o,currentPage:e}},g={args:{filter:a,search:i}};s(h),d||(c(g),p.isMobile||Object(v.d)())}}},{key:"containerProps",value:function(){var e=this.props,t=e.device,r=e.isLoading,n=e.isPaginationEnabled,i=e.isWidget,a=e.mix,o=e.pages,s=e.selectedFilters,c=e.title,u=e.totalPages,l=e.isPlp;return{device:t,isLoading:r,isPaginationEnabled:n,isWidget:i,mix:a,pages:o,selectedFilters:s,title:c,totalPages:u,currentPage:this._getPageFromUrl(),isShowLoading:this._isShowLoading(),isVisible:this._isVisible(),isPlp:l,requestPage:this.requestPage,isInfiniteLoaderEnabled:this._getIsInfiniteLoaderEnabled()}}},{key:"_getIsInfiniteLoaderEnabled",value:function(){var e=this.props,t=e.isInfiniteLoaderEnabled;return!!e.device.isMobile&&t}},{key:"_getPageFromUrl",value:function(e){var t=this.props.location,r=e||t;return+(Object(y.d)("page",r)||1)}},{key:"_getPagesBounds",value:function(){var e=this.props,t=e.pages,r=e.totalItems,n=e.pageSize,i=Object.keys(t);return{maxPage:Math.max.apply(Math,Object(a.a)(i)),minPage:Math.min.apply(Math,Object(a.a)(i)),totalPages:Math.ceil(r/n),loadedPagesCount:i.length}}},{key:"_isShowLoading",value:function(){var e=this.props.isLoading;return this._getPagesBounds().minPage>1&&!e}},{key:"_isVisible",value:function(){var e=this._getPagesBounds();return e.maxPage<e.totalPages}},{key:"loadPage",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.pagesCount,r=this.props.isPageLoading,n=this._getPagesBounds(),i=n.minPage,a=n.maxPage,o=n.totalPages,s=n.loadedPagesCount,c=o>0&&t===s,u=e?a<o:i>1;c&&u&&!r&&(this.setState({pagesCount:t+1}),this.requestPage(e?a+1:i-1,!0))}},{key:"updatePage",value:function(e){var t=this.props,r=t.location,n=t.history;Object(y.j)({page:1===e?"":e},r,n),Object(v.d)()}},{key:"render",value:function(){return C(n,m.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(p.PureComponent)),i.defaultProps={mix:{},pageSize:24,filter:{},search:"",selectedFilters:{},sort:void 0,isPreventRequest:!1,isPaginationEnabled:!0,isInfiniteLoaderEnabled:!0,isPageLoading:!1,noAttributes:!1,noVariants:!1,isWidget:!1,title:"",totalPages:1,isPlp:!1},i),"Component/ProductList/Container");Object(g.g)(Object(h.b)(b,P)(k))}).call(this,r(9).default,r(1))},1868:function(e,t,r){"use strict";(function(e,n,i){var a,o=r(2),s=r(3),c=r(4),u=r(19),l=r(17),d=r(5),p=r(6),h=r(0),g=r.n(h),f=r(51),v=r(1783),y=r(458),m=r(1869),b=r(112),P=r(40),C=r(111),k=(r(1325),r(13).checkBEMProps),O=e.middleware((a=function(e){Object(d.a)(r,e);var t=Object(p.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))).previousY=0,e.previousRatio=0,e}return Object(c.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isWidget,n=t.currentPage,i=t.device,a=t.isInfiniteLoaderEnabled;e.currentPage===n||r||i.isMobile||a||Object(C.d)({behavior:"smooth"}),a&&this.observePageChange()}},{key:"observePageChange",value:function(){var e=this,t=this.props,r=t.updatePage;if(t.isLoading&&(this.pagesIntersecting=[]),!this.observer&&"IntersectionObserver"in window){var n=this._getThreshold();this.observer=new IntersectionObserver((function(t){var n=e.props.currentPage;t.forEach((function(t){var i=t.target,a=t.isIntersecting,o=t.intersectionRatio,s=t.boundingClientRect.y,c=+Object.keys(e.nodes).find((function(t){return e.no
1des[t]===i.parentNode}));if(s<e.previousY)e.previousRatio,c!==n&&r(c);else if(s>e.previousY&&a&&o<e.previousRatio){var u=Object.keys(e.nodes).map((function(e){return+e})),l=u.indexOf(c);if(l>0){var d=u[l-1];d!==n&&r(d)}}e.previousY=s,e.previousRatio=o}))}),{rootMargin:"0px 0px -400px 0px",threshold:n})}this.updateObserver()}},{key:"updateObserver",value:function(){var e=this,t=Object.values(this.nodes);if(this.observer&&!(t.length<=0)){var r=t.map((function(e){if(e&&e.children.length){var t=Object.values(e.children).find((function(e){return!e.classList.contains("ProductListContentPush")}));if(t)return t}return e}));r.forEach((function(t){t&&!e.observedNodes.includes(t)&&(e.observer.observe(t),e.observedNodes.push(t))})),this.observedNodes=this.observedNodes.reduce((function(t,n){return r.includes(n)?t.push(n):e.observer.unobserve(n),t}),[])}}},{key:"renderLoadButton",value:function(){var e=this.props,t=e.isShowLoading,r=e.isInfiniteLoaderEnabled,a=e.loadPrevPage,o=e.isPageLoading;return t&&r?k(n,"div",{block:"ProductList",elem:"LoadButtonWrapper"},k(n,"button",{type:"button",block:"Button",mods:{isHollow:!0},mix:{block:"ProductList",elem:"LoadButton"},onClick:a,disabled:o},i("Load previous products"))):null}},{key:"renderNoProducts",value:function(){return this.props.isWidget?null:Object(u.a)(Object(l.a)(r.prototype),"renderNoProducts",this).call(this)}},{key:"renderPages",value:function(){var e=this.props,t=e.pages;return e.isLoading?this.renderPage():Object.entries(t).map(this.renderProductPage.bind(this))}},{key:"renderPage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,r=t.isInfiniteLoaderEnabled,i=t.loadPage,a=t.isLoading,o=t.isVisible,s=t.mix,c=t.isPlp,u=t.contentPushes,l=t.isWidget,d=t.categoryId,p=this._processProps(e),h=p.items,g=p.keys,f=p.pageNumber,v=p.selectedFilters,m=p.wrapperRef,b=p.key;return k(n,y.a,{key:b,isInfiniteLoaderEnabled:r,updatePages:i,isLoading:a,isVisible:o,ix:s,items:h,keys:g,pageNumber:f,selectedFilters:v,wrapperRef:m,isPlp:c,contentPushes:u,isWidget:l,categoryId:d})}},{key:"renderPagination",value:function(){var e=this.props,t=e.isLoading,r=e.totalPages,i=e.isPaginationEnabled,a=e.pages,o=e.pageSize,s=e.totalItems,c=e.isPageLoading,u=e.onShowMoreButtonClick;if(!i)return null;var l=Object.keys(a).length;return k(n,v.a,{isLoading:t||c,totalPages:r,pageSize:o,pagesCount:l,totalItems:s,onShowMoreButtonClick:u})}},{key:"render",value:function(){var e=this.props,t=e.totalPages,r=e.isLoading,i=e.mix,a=e.productListRef;return r||0!==t?r?k(n,f.a,null):k(n,"div",{block:"ProductList",mods:{isLoading:r},mix:i,ref:a},this.renderTitle(),this.renderLoadButton(),this.renderPages(),this.renderPagination()):this.renderNoProducts()}}]),r}(e.Extensible(m.a)),a.propTypes=Object(o.a)(Object(o.a)({},m.a.propTypes),{},{productListRef:P.e.isRequired,contentPushes:g.a.arrayOf(b.a),pageSize:g.a.number.isRequired,totalItems:g.a.number.isRequired,isPageLoading:g.a.bool.isRequired,onShowMoreButtonClick:g.a.func.isRequired,categoryId:g.a.number}),a.defaultProps={contentPushes:[],categoryId:null},a),"PeggysagePwa/Component/ProductList/Component");t.a=O}).call(this,r(9).default,r(1),r(28).default)},1869:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return C}));var a,o=r(12),s=r(43),c=r(7),u=r(3),l=r(4),d=r(5),p=r(6),h=r(1),g=r(1783),f=r(458),v=(r(112),r(40),r(193),r(42),r(111)),y=r(38),m=r(1870),b=(r(1341),["key"]),P=r(13).checkBEMProps,C=e.middleware((a=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))).nodes={},e.observedNodes=[],e.pagesIntersecting=[],e}return Object(l.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isWidget,n=t.currentPage,i=t.device;e.currentPage===n||r||i.isMobile||Object(v.d)({behavior:"smooth"}),this.props.isInfiniteLoaderEnabled&&this.observePageChange()}},{key:"componentWillUnmount",value:function(){this.observer&&this.observer.disconnect&&this.observer.disconnect(),this.observer=null}},{key:"observePageChange",value:function(){var e=this,t=this.props,r=t.updatePage;if(t.isLoading&&(this.pagesIntersecting=[]),!this.observer&&"IntersectionObserver"in window){var n=this._getThreshold();this.observer=new IntersectionObserver((function(t){var n=e.props.currentPage;t.forEach((function(t){var r=t.target,n=t.isIntersecting,i=+Object.keys(e.nodes).find((function(t){return e.no
1des[t]===r})),a=e.pagesIntersecting.indexOf(i);n&&-1===a&&e.pagesIntersecting.push(i),!n&&a>-1&&e.pagesIntersecting.splice(a,1)}));var i=Math.min.apply(Math,Object(c.a)(e.pagesIntersecting));i<1/0&&i!==n&&r(i)}),{rootMargin:"0px",threshold:n})}this.updateObserver()}},{key:"updateObserver",value:function(){var e=this,t=Object.values(this.nodes);!this.observer||t.length<=0||(t.forEach((function(t){t&&!e.observedNodes.includes(t)&&(e.observer.observe(t),e.observedNodes.push(t))})),this.observedNodes=this.observedNodes.reduce((function(r,n){return t.includes(n)?r.push(n):e.observer.unobserve(n),r}),[]))}},{key:"_getThreshold",value:function(){return Array.from({length:100/m.a+1},(function(e,t){return t*(m.a/100)}))}},{key:"renderLoadButton",value:function(){var e=this.props,t=e.isShowLoading,r=e.isInfiniteLoaderEnabled,a=e.loadPrevPage;return t&&r?P(n,"div",{block:"ProductList",elem:"LoadButton",role:"button",tabIndex:"0",onKeyUp:a,onClick:a},i("Load previous")):null}},{key:"renderNoProducts",value:function(){return P(n,"div",{block:"ProductList"},P(n,"div",{block:"ProductList",elem:"ProductsMissing"},P(n,"h2",null,i("We are sorry!")),P(n,"h3",null,i("There were no products found matching your request.")),P(n,"p",null,i("Please, try removing selected filters and try again!"))))}},{key:"renderPages",value:function(){var e=this.props,t=e.pages,r=e.isVisible,n=e.isLoading,i=e.isInfiniteLoaderEnabled;if(n)return this.renderPage();var a=Object.entries(t).map(this.renderProductPage.bind(this));if(r&&i){var o=Math.max(Object.keys(t))+1;a.push(this.renderPage({key:o}))}return a}},{key:"_processProps",value:function(e){if(this.props.isInfiniteLoaderEnabled)return e;e.key;var t=Object(s.a)(e,b);return t.key=0,t}},{key:"renderPage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,r=t.isInfiniteLoaderEnabled,i=t.loadPage,a=t.isLoading,o=t.isVisible,s=t.mix,c=t.isPlp,u=this._processProps(e),l=u.items,d=u.keys,p=u.pageNumber,h=u.selectedFilters,g=u.wrapperRef,v=u.key;return P(n,f.a,{key:v,isInfiniteLoaderEnabled:r,updatePages:i,isLoading:a,isVisible:o,mix:s,items:l,keys:d,pageNumber:p,selectedFilters:h,wrapperRef:g,isPlp:c})}},{key:"renderProductPage",value:function(e){var t=this,r=Object(o.a)(e,2),n=r[0],i=r[1],a=void 0===i?[]:i,s=this.props.selectedFilters,c=+n;return this.renderPage({selectedFilters:s,pageNumber:c,items:a,key:n,wrapperRef:function(e){t.nodes[c]=e}})}},{key:"renderPagination",value:function(){var e=this.props,t=e.isLoading,r=e.totalPages;return e.isPaginationEnabled?P(n,g.a,{isLoading:t,totalPages:r}):null}},{key:"renderTitle",value:function(){var e=this.props.title;return e?P(n,"h2",null,e):null}},{key:"render",value:function(){var e=this.props,t=e.totalPages,r=e.isLoading,i=e.mix;return r||0!==t?P(n,"div",{block:"ProductList",mods:{isLoading:r},mix:i},this.renderTitle(),this.renderLoadButton(),this.renderPages(),this.renderPagination()):this.renderNoProducts()}}]),r}(e.Extensible(h.PureComponent)),a.defaultProps={mix:{},title:"",isInfiniteLoaderEnabled:!1,isPaginationEnabled:!1,selectedFilters:{},isLoading:!1,updatePage:y.e,totalPages:1,loadPage:y.e,loadPrevPage:y.e,currentPage:1,isShowLoading:!1,isVisible:!0,isWidget:!1},a),"Component/ProductList/Component")}).call(this,r(9).default,r(1),r(28).default)},1870:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=5},1871:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(11),c=r(5),u=r(6),l=r(1),d=r(18),p=(r(40),r(1988)),h=e.middleware((function(){return{}}),"PeggysagePwa/Component/ExpandableText/Container/mapStateToProps"),g=e.middleware((function(){return{}}),"PeggysagePwa/Component/ExpandableText/Container/mapDispatchToProps"),f=r(13).checkBEMProps,v=e.middleware((i=function(e){Object(c.a)(r,e);var t=Object(u.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))).state={isExpandable:!0,isExpanded:!1},e.expandableContentRef=Object(l.createRef)(),e.containerFunctions={toggleExpand:e.toggleExpand.bind(Object(s.a)(e))},e}
1return Object(o.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleReadMore),this.handleReadMore()}},{key:"containerProps",value:function(){var e=this.props,t=e.children,r=e.mix,n=e.mods,i=e.maxNumLines,a=this.state,o=a.isExpandable,s=a.isExpanded;return{children:t,expandableContentRef:this.expandableContentRef,isExpandable:o,isExpanded:s,mix:r,mods:n,maxNumLines:i}}},{key:"handleReadMore",value:function(){var e,t=null===(e=this.expandableContentRef)||void 0===e?void 0:e.current;if(t){var r=t.querySelector('[data-content-type="text"]')||t;this.setState({isExpanded:!1}),this.setState({isExpandable:r.clientHeight!==r.scrollHeight})}}},{key:"toggleExpand",value:function(){var e=this.state.isExpanded;this.setState({isExpanded:!e})}},{key:"render",value:function(){return f(n,p.a,Object.assign({},this.containerProps(),this.containerFunctions))}}]),r}(e.Extensible(l.PureComponent)),i.defaultProps={children:[],mods:{}},i),"PeggysagePwa/Component/ExpandableText/Container");t.a=Object(d.b)(h,g)(v)}).call(this,r(9).default,r(1))},1876:function(e,t,r){"use strict";(function(e){var n=r(2),i=r(1922),a=r(373),o=e.middleware((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object(i.a)(),t=arguments.length>1?arguments[1]:void 0,r=t.type,o=t.category;switch(r){case a.b:return Object(n.a)(Object(n.a)({},e),{},{category:Object(n.a)({},o)});case a.a:return Object(i.a)();default:return e}}),"PeggysagePwa/Store/Category/Reducer/CategoryReducer");t.a=o}).call(this,r(9).default)},1904:function(e,t,r){"use strict";var n=r(1822);r.d(t,"a",(function(){return n.a}))},1905:function(e,t,r){"use strict";var n=r(1871);r.d(t,"a",(function(){return n.a}))},1911:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"e",(function(){return i})),r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return s}));var n="HOME_TAB",i="MENU_TAB",a="ACCOUNT_TAB",o="CART_TAB",s="CHECKOUT_TAB"},1918:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(4),o=r(11),s=r(5),c=r(6),u=r(1),l=r(18),d=r(41),p=(r(112),r(1767),r(52)),h=r(94),g=r(2037),f=e.middleware((function(e){return{}}),"PeggysagePwa/Component/RestrictedContentSignIn/Container/mapStateToProps"),v=e.middleware((function(e){return{}}),"PeggysagePwa/Component/RestrictedContentSignIn/Container/mapDispatchToProps"),y=r(13).checkBEMProps,m=e.middleware(function(e){Object(s.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),s=0;s<n;s++)a[s]=arguments[s];return(e=t.call.apply(t,[this].concat(a))).state={isLoading:!1},e.containerFunctions={setLoadingState:e.setLoadingState.bind(Object(o.a)(e)),handleForgotPassword:e.handleForgotPassword.bind(Object(o.a)(e)),handleCreateAccount:e.handleCreateAccount.bind(Object(o.a)(e)),onSignIn:e.onSignIn.bind(Object(o.a)(e))},e}return Object(a.a)(r,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){this.mounted=!1}}
1,{key:"setLoadingState",value:function(e){this.mounted&&this.setState({isLoading:e})}},{key:"handleForgotPassword",value:function(e){e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),p.a.push(Object(h.a)(d.f))}},{key:"handleCreateAccount",value:function(e){e.preventDefault(),e.nativeEvent.stopImmediatePropagation(),p.a.push(Object(h.a)(d.p))}},{key:"onSignIn",value:function(){document.location.reload()}},{key:"containerProps",value:function(){return{content:this.props.content,isLoading:this.state.isLoading}}},{key:"render",value:function(){return y(n,g.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(u.PureComponent)),"PeggysagePwa/Component/RestrictedContentSignIn/Container");t.a=Object(l.b)(f,v)(m)}).call(this,r(9).default,r(1))},1920:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=(r(1388),r(13).checkBEMProps),d=e.middleware((i=function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"render",value:function(){var e=this.props.isActive;return l(n,"svg",{block:"GridIcon",mods:{isActive:e},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l(n,"path",{d:"M10 3H4C3.448 3 3 3.448 3 4V10C3 10.552 3.448 11 4 11H10C10.552 11 11 10.552 11 10V4C11 3.448 10.552 3 10 3ZM9 9H5V5H9V9ZM14 11H20C20.553 11 21 10.552 21 10V4C21 3.448 20.553 3 20 3H14C13.447 3 13 3.448 13 4V10C13 10.552 13.447 11 14 11ZM15 5H19V9H15V5ZM3 20C3 20.552 3.448 21 4 21H10C10.552 21 11 20.552 11 20V14C11 13.448 10.552 13 10 13H4C3.448 13 3 13.448 3 14V20ZM5 15H9V19H5V15ZM13 20C13 20.552 13.447 21 14 21H20C20.553 21 21 20.552 21 20V14C21 13.448 20.553 13 20 13H14C13.447 13 13 13.448 13 14V20ZM15 15H19V19H15V15Z"}))}}]),r}(e.Extensible(u.PureComponent)),i.defaultProps={isActive:!1},i),"Component/GridIcon/Component");t.a=d}).call(this,r(9).default,r(1))},1921:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=(r(1389),r(13).checkBEMProps),d=e.middleware((i=function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"render",value:function(){var e=this.props.isActive;return l(n,"svg",{block:"ListIcon",mods:{isActive:e},width:"27",height:"27",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l(n,"path",{d:"M3 5H5.25V7.33333H3V5ZM3 10.8333H5.25V13.1667H3V10.8333ZM3 16.6667H5.25V19H3V16.6667ZM21 7.33333V5H19.65H8.85H7.52587V7.33333H8.85H19.65H21ZM7.5 10.8333H21V13.1667H7.5V10.8333ZM7.5 16.6667H21V19H7.5V16.6667Z"}))}}]),r}(e.Extensible(u.PureComponent)),i.defaultProps={isActive:!1},i),"Component/ListIcon/Component");t.a=d}).call(this,r(9).default,r(1))},1922:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));var n=r(2),i=r(373),a=e.middleware((function(){return{category:{}}}),"Store/Category/Reducer/getInitialState");e.middleware((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a(),t=arguments.length>1?arguments[1]:void 0,r=t.type,o=t.category;return r===i.b?Object(n.a)(Object(n.a)({},e),{},{category:Object(n.a)({},o)}):e}),"Store/Category/Reducer/CategoryReducer")}).call(this,r(9).default)},1933:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return s}));var n=r(18),i=r(1823),a=r(1773),o=e.middleware((function(e){return{payload:e.PopupReducer.popupPayload[a.a]||{}}}),"Component/VideoPopup/Container/mapStateToProps"),s=e.middleware((function(){return{}}),"Component/VideoPopup/Container/mapDispatchToProps");Object(n.b)(o,s)(i.a)}).call(this,r(9).default)},1934:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return g}));var i=r(12),a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(164),d=(r(42),r(235)),p=r(1773),h=(r(1354),r(13).checkBEMProps),g=e.middleware(function(t){Object(s.a)(g,t);var u=Object(c.a)(g);function g(){return Object(a.a)(this,g),u.apply(this,arguments)}
1return Object(o.a)(g,[{key:"componentDidMount",value:function(){var t=this;this.loadVimeoLibrary(),this.loadYouTubeLibrary(),Promise.all([this.vimeoPromise,this.youTubePromise]).then(e.middleware((function(){return t.forceUpdate()}),"Component/VideoPopup/Component/VideoPopup/componentDidMount/all/then"))}},{key:"componentWillUnmount",value:function(){this.youTubePromise&&this.youTubePromise.cancel(),this.vimeoPromise&&this.vimeoPromise.cancel()}},{key:"_renderVimeoVideo",value:function(e){var t=this.vimeoComponent;return t?h(n,t,{videoId:e,autoplay:!0}):null}},{key:"_renderYoutubeVideo",value:function(e){var t=this.youTubeComponent;return t?h(n,t,{videoId:e,containerClassName:"VideoPopup-YouTubeContainer",className:"VideoPopup-YouTube",opts:{playerVars:{autoplay:1}}}):null}},{key:"loadVimeoLibrary",value:function(){var t=this;this.vimeoPromise=Object(d.a)(r.e(65).then(r.t.bind(null,2151,7))),this.vimeoPromise.promise.then(e.middleware((function(e){var r=e.default;t.vimeoComponent=r}),"Component/VideoPopup/Component/VideoPopup/loadVimeoLibrary/then"))}},{key:"loadYouTubeLibrary",value:function(){var t=this;this.youTubePromise=Object(d.a)(r.e(64).then(r.bind(null,2152))),this.youTubePromise.promise.then(e.middleware((function(e){var r=e.default;t.youTubeComponent=r}),"Component/VideoPopup/Component/VideoPopup/loadYouTubeLibrary/then"))}},{key:"_renderVideoContent",value:function(){var e=this.props.payload.media,t=(e=void 0===e?{}:e).video_content,r=(t=void 0===t?{}:t).video_url;if(!r)return null;var n=p.b.exec(r)||[],a=Object(i.a)(n,2)[1];if(a)return this._renderVimeoVideo(a);var o=p.c.exec(r),s=Object(i.a)(o,2)[1];return s?this._renderYoutubeVideo(s):null}},{key:"render",value:function(){return h(n,l.a,{id:p.a,mix:{block:"VideoPopup"}},h(n,"div",{block:"VideoPopup",elem:"VideoPlayer"},h(n,"div",{block:"VideoPopup",elem:"PlayerContent"},this._renderVideoContent())))}}]),g}(e.Extensible(u.PureComponent)),"Component/VideoPopup/Component")}).call(this,r(9).default,r(1))},1938:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c}));var n=r(2038),i=r.n(n),a=r(1773),o=r(96),s=r(68),c=e.middleware((function(e){if(e){var t=Object(s.a)().dispatch;e.querySelectorAll(".pagebuilder-video-container iframe").forEach((function(e){var r=i()(e.getAttribute("src")),n=e.getAttribute("poster")||"https://img.youtube.com/vi/".concat(r,"/hqdefault.jpg"),s={thumbnail:{url:n},file:"hqdefault.jpg",video_content:{media_type:"external-video",video_description:"",video_metadata:"",video_provider:"",video_title:"",video_url:"https://www.youtube.com/watch?v=".concat(r)},id:-1,media_type:"external-video",label:null,position:0,disabled:!1,types:[]},c='<img class="video-thumbnail" src="'.concat(n,'" alt="" /><span class="VideoThumbnail-PlayIcon"></span>'),u=document.createElement("div");u.className="video-thumbnail-link",u.innerHTML=c,u.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var r={media:s,title:""};t(Object(o.b)(a.a,r))})),e.parentNode.insertBefore(u,e.nextSibling)}))}}),"PeggysagePwa/Util/CMS/Index/setVideoBlock")}).call(this,r(9).default)},1971:function(e,t,r){"use strict";var n=r(1861);r.d(t,"a",(function(){return n.a}))},1972:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(4),o=r(5),s=r(6),c=r(1),u=r(72),l=r(121),d=(r(1835),r(1368),r(13).checkBEMProps),p=e.middleware(function(e){Object(o.a)(r,e);var t=Object(s.a)(r);function r(){return Object(i.a)(this,r),t.apply(this,arguments)}return Object(a.a)(r,[{key:"render",value:function(){var e=this.props.collection,t=e.collection_category_name,r=e.name,i=e.url,a=e.image_collection_ambiance;return d(n,"div",{block:"CollectionCard"},d(n,l.a,{block:"CollectionCard",elem:"WrapperLink",to:i},d(n,"div",{block:"CollectionCard",elem:"Visual"},d(n,"div",{block:"CollectionCard",elem:"VisualInner"},d(n,u.a,{mix:{block:"CollectionCard",elem:"Image"},src:a,isPlaceholder:!a,alt:r,ratio:"square"}))),d(n,"div",{block:"CollectionCard",elem:"Content"},d(n,"div",{block:"CollectionCard",elem:"Category"},t),d(n,"h3",{block:"CollectionCard",elem:"Title"},r))))}}]),r}(e.Extensible(c.PureComponent)),"PeggysagePwa/Component/CollectionCard/Component");t.a=p}).call(this,r(9).default,r(1))},1988:function(e,t,r){"use strict";(function(e,n,i){var a,o=r(2),s=r(3),c=r(4),u=r(5),l=r(6),d=r(1),p=(r(40),r(1375),r(13).checkBEMProps),h=e.middleware((a=function(e){Object(u.a)(r,e);var t=Object(l.a)(r);function r(){return Object(s.a)(this,r),t.apply(this,arguments)}return Object(c.a)(r,[{key:"renderButton",value:function(){var e=this.props,t=e.mix,r=e.isExpandable,a=e.isExpanded,s=e.toggleExpand,c=n(a?"Read less":"Read more");return p(i,"button",{block:"ExpandableText",elem:"Button",mods:{isVisible:r},mix:Object(o.a)(Object(o.a)({},t),{},{elem:"ExpandableTextButton"}),onClick:s,onKeyDown:s},c)}},{key:"renderContent",value:function(){var e=this.props,t=e.children,r=e.expandableContentRef,n=e.mix,a=e.maxNumLines,s={isExpanded:e.isExpanded};return p(i,"div",{block:"ExpandableText",elem:"Content",mods:s,mix:Object(o.a)(Object(o.a)({},n),{},{elem:"ExpandableTextContent",mods:s}
1),ref:r,style:{"--max-num-lines":a}},t)}},{key:"render",value:function(){var e=this.props,t=e.mix,r=e.mods;return p(i,"div",{block:"ExpandableText",mix:t,mods:r},this.renderContent(),this.renderButton())}}]),r}(e.Extensible(d.PureComponent)),a.defaultProps={children:[],mods:{}},a),"PeggysagePwa/Component/ExpandableText/Component");t.a=h}).call(this,r(9).default,r(28).default,r(1))},2009:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(18),d=(r(112),r(1938)),p=r(2138),h=e.middleware((function(e){return{isMobile:e.ConfigReducer.device.isMobile}}),"PeggysagePwa/Component/CategoryDetailsBottom/Container/mapStateToProps"),g=e.middleware((function(){return{}}),"PeggysagePwa/Component/CategoryDetailsBottom/Container/mapDispatchToProps"),f=r(13).checkBEMProps,v=e.middleware((i=function(e){Object(s.a)(r,e);var t=Object(c.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={},e.state={areVideoBlocksInitialized:!1},e.descriptionRef=Object(u.createRef)(),e}return Object(o.a)(r,[{key:"componentDidMount",value:function(){this.initVideoBlocks()}},{key:"componentDidUpdate",value:function(){this.initVideoBlocks()}},{key:"initVideoBlocks",value:function(){var e,t=this.state.areVideoBlocksInitialized,r=null===(e=this.descriptionRef)||void 0===e?void 0:e.current;!t&&r&&this.handleVideoBlocks()}},{key:"handleVideoBlocks",value:function(){var e,t=null===(e=this.descriptionRef)||void 0===e?void 0:e.current;this.setState({areVideoBlocksInitialized:!0}),Object(d.a)(t)}},{key:"containerProps",value:function(){var e=this.props;return{isMobile:e.isMobile,category:e.category,isCurrentCategoryLoaded:e.isCurrentCategoryLoaded,descriptionRef:this.descriptionRef}}},{key:"render",value:function(){return f(n,p.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(u.PureComponent)),i.defaultProps={isCurrentCategoryLoaded:!0},i),"PeggysagePwa/Component/CategoryDetailsBottom/Container");t.a=Object(l.b)(h,g)(v)}).call(this,r(9).default,r(1))},2010:function(e,t,r){"use strict";(function(e,n){var i,a=r(31),o=r(3),s=r(4),c=r(5),u=r(6),l=r(1),d=r(18),p=r(2040),h=(r(62),r(40),r(36)),g=r(34),f=r(2140);function v(){v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),o=new w(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return L()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,o),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(x){return{type:"throw",arg:x}}}e.wrap=c;var l={};function d(){}function p(){}function h(){}var g={};s(g,i,(function(){return this}));var f=Object.getPrototypeOf,y=f&&f(f(j([])));y&&y!==t&&r.call(y,i)&&(g=y);var m=h.prototype=d.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function C(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&
1(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,l;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,s(m,"constructor",h),s(h,"constructor",p),p.displayName=s(h,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,o,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},b(P.prototype),s(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new P(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(m),s(m,o,"Generator"),s(m,i,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}var y=r.e(30).then(r.bind(null,46)),m=e.middleware((function(e){return{customer:e.MyAccountReducer.customer}}),"PeggysagePwa/Component/CategoryFeaturedProducts/Container/mapStateToProps"),b=e.middleware((function(e){return{requestCustomerData:function(){return y.then((function(t){return t.default.requestCustomerData(e)}))}}}),"PeggysagePwa/Component/CategoryFeaturedProducts/Container/mapDispatchToProps"),P=r(13).checkBEMProps,C=e.middleware((i=function(t){Object(c.a)(i,t);var r=Object(u.a)(i);function i(){var e;Object(o.a)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=r.call.apply(r,[this].concat(n))).state={isLoading:!0,items:[],firstname:""},e.containerFunctions={},e}
1return Object(s.a)(i,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.getData(),this.getCustomerFirstname()}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.categoryId,n=t.isCurrentCategoryLoaded,i=t.customer,a=(i=void 0===i?{}:i).firstname,o=e.categoryId,s=e.isCurrentCategoryLoaded,c=e.customer,u=(c=void 0===c?{}:c).firstname;n!==s&&(n||this.setState({isLoading:!0,items:[]})),r!==o&&this.getData(),a!==u&&this.getCustomerFirstname()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"__construct",value:function(){this._isMounted=!1}},{key:"containerProps",value:function(){var e=this.props.mix,t=this.state;return{mix:e,isLoading:t.isLoading,items:t.items,firstname:t.firstname}}},{key:"getCustomerFirstname",value:function(){var e=this.props,t=e.customer,r=e.requestCustomerData;Object(h.i)()&&!Object.keys(t).length&&r(),this.setState({firstname:(null===t||void 0===t?void 0:t.firstname)||""})}},{key:"getData",value:function(){var t=Object(a.a)(v().mark((function t(){var r,n=this;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(+(r=this.props.categoryId)){t.next=3;break}return t.abrupt("return");case 3:this.setState({isLoading:!0}),Object(g.g)(p.a.getCategoryFeaturedProducts(+r)).then(e.middleware((function(e){n._isMounted&&n.setState({items:e.getCategoryFeaturedProducts,isLoading:!1})}),"PeggysagePwa/Component/CategoryFeaturedProducts/Container/CategoryFeaturedProductsContainer/getData/then/catch/fetchQuery/then")).catch(e.middleware((function(){n._isMounted&&n.setState({isLoading:!1}),Promise.reject()}),"PeggysagePwa/Component/CategoryFeaturedProducts/Container/CategoryFeaturedProductsContainer/getData/then/catch"));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){return P(n,f.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),i}(e.Extensible(l.PureComponent)),i.defaultProps={isCurrentCategoryLoaded:!1,mix:{}},i),"PeggysagePwa/Component/CategoryFeaturedProducts/Container");t.a=Object(d.b)(m,b)(C)}).call(this,r(9).default,r(1))},2011:function(e,t,r){"use strict";var n=r(2012);r.d(t,"a",(function(){return n.a}))},2012:function(e,t,r){"use strict";(function(e){var n,i=r(3),a=r(4),o=r(19),s=r(17),c=r(5),u=r(6),l=r(2),d=r(0),p=r.n(d),h=r(18),g=r(2141),f=r(483),v=r(112),y=r(454),m=(r(1414),e.middleware((function(e){return Object(l.a)({},Object(g.b)(e))}),"PeggysagePwa/Component/CategoryProductList/Container/mapDispatchToProps")),b=e.middleware((function(e){return Object(l.a)({},Object(g.c)(e))}),"PeggysagePwa/Component/CategoryProductList/Container/mapStateToProps"),P=e.middleware((n=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(i.a)(this,r),t.apply(this,arguments)}return Object(a.a)(r,[{key:"containerProps",value:function(){var e=this.props,t=e.contentPushes,n=e.categoryId;return Object(l.a)(Object(l.a)({},Object(o.a)(Object(s.a)(r.prototype),"containerProps",this).call(this)),{},{contentPushes:t,categoryId:n})}}]),r}(e.Extensible(g.a)),n.propTypes=Object(l.a)(Object(l.a)({},g.a.propTypes),{},{contentPushes:p.a.arrayOf(v.a),categoryId:p.a.number}),n.defaultProps=Object(l.a)(Object(l.a)({},g.a.defaultProps),{},{contentPushes:[],categoryId:null}),n),"PeggysagePwa/Component/CategoryProductList/Container");t.a=Object(y.a)({ProductListReducer:f.a})(Object(h.b)(b,m)(P))}).call(this,r(9).default)},2013:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(4),o=r(5),s=r(6),c=r(1),u=(r(112),r(2143)),l=r(13).checkBEMProps,d=e.middleware(function(e){Object(o.a)(r,e);var t=Object(s.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))).containerFunctions={},e}return Object(a.a)(r,[{key:"containerProps",value:function(){return{review:this.props.review}}},{key:"render",value:function(){return l(n,u.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(c.PureComponent)),"PeggysagePwa/Component/CategoryReview/Container");t.a=d}).call(this,r(9).default,r(1))},2014:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return j})),r.d(t,"b",(function(){return x}));var a,o=r(3),s=r(4),c=r(5),u=r(6),l=r(1),d=r(2144),p=r(2069),h=r(2011),g=r(479),f=r(273),v=r(464),y=r(2042),m=r(95),b=r(2043),P=r(51),C=r(76),k=(r(112),r(238),r(42),r(111)),O=r(16),w=r(67),j=(r(1419),Object(l.lazy)((function(){return Promise.all([r.e(0),r.e(3),r.e(47)]).then(r.bind(null,2315))}))),L=r(13).checkBEMProps,x=e.middleware((a=function(e){Object(c.a)(r,e);var t=Object(u.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))).state={},e}return Object(s.a)(r,[{key:"displayProducts",value:function(){var e=this.props.category,t=(e=void 0===e?{}:e).display_mode,r=void 0===t?w.c:t;return null===r||r===w.c||r===w.a}},{key:"displayCmsBlock",value:function(){var e=this.props.category,t=(e=void 0===e?{}:e).display_mode;return t===w.b||t===w.a}},{key:"renderCategoryDetails",value:function(){var e=this.props,t=e.category,r=e.isCurrentCategoryLoaded;return L(n,d.a,{category:t,isCurrentCategoryLoaded:r})}},{key:"renderFiltersCount",value:function(){var e=this.props.appliedFiltersCount;return e?L(n,"span",{block:"CategoryPage",elem:"Subheading"}," (".concat(e,")")):null}},{key:"renderFilterButton",value:function(){var e=this.props,t=e.isContentFiltered,r=e.totalPages,a=e.category.is_anchor,o=e.isSearchPage,s=e.isCurrentCategoryLoaded,c=e.isMatchingInfoFilter,u=e.onFilterButtonClick;return c?!t&&0===r||!a&&!o||!s?null:L(n,"button",{block:"CategoryPage",elem:"Filter",onClick:u},L(n,v.a,null),L(n,"span",null,i("Filters")),this.renderFiltersCount()):this.renderFilterButtonPlaceholder()}},{key:"renderFilterPlaceholder",value:function(){return L(n,"div",{block:"CategoryPage",elem:"PlaceholderWrapper"},L(n,"div",{block:"CategoryPage",elem:"PlaceholderContainer"},L(n,"h3",{block:"CategoryPage",elem:"PlaceholderHeading"},i("Shopping Options")),L(n,"div",{block:"CategoryPage",elem:"PlaceholderList"},L(n,"div",{block:"CategoryPage",elem:"PlaceholderListItem"}),L(n,"div",{block:"CategoryPage",elem:"PlaceholderListItem"}),L(n,"div",{block:"CategoryPage",elem:"PlaceholderListItem"})),L(n,P.a,{isLoading:!0})))}},{key:"renderFilterButtonPlaceholder",value:function(){return L(n,"p",{block:"CategoryPage",elem:"FilterButtonPlaceholder"},L(n,C.a,{length:"short"}))}},{key:"renderFilterOverlay",value:function(){var e=this.props,t=e.filters,r=e.selectedFilters,i=e.isMatchingInfoFilter,a=e.isSearchPage,o=this.props.category.is_anchor;return this.displayProducts()?L(n,l.Suspense,{fallback:this.renderFilterPlaceholder()},L(n,j,{availableFilters:t,customFiltersValues:r,isMatchingInfoFilter:i,isCategoryAnchor:!!o,isSearchPage:a,renderPlaceholder:this.renderPlaceholder})):null}},{key:"renderCategorySort",value:function(){var e=this.props,t=e.sortFields,r=e.selectedSort,i=e.onSortChange,a=e.isMatchingInfoFilter,o=e.isCurrentCategoryLoaded,s=e.isMobile,c=t.o
1ptions,u=void 0===c?{}:c,l=Object.values(u).map((function(e){return{id:e.value,label:e.label}})),d=r.sortDirection,p=r.sortKey;return s&&!a?this.renderFilterButtonPlaceholder():L(n,g.a,{isCurrentCategoryLoaded:o,isMatchingInfoFilter:a,onSortChange:i,sortFields:l,sortKey:p,sortDirection:d})}},{key:"renderLayoutButton",value:function(e){var t=this.props,r=t.onGridButtonClick,i=t.onListButtonClick,a=this.state.activeLayoutType;switch(e){case w.d:return L(n,"button",{key:e,onClick:r,mix:{block:w.d,mods:{isActive:a===w.d}},"aria-label":"grid"},L(n,y.a,{isActive:a===w.d}));case w.f:return L(n,"button",{key:e,onClick:i,mix:{block:w.f,mods:{isActive:a===w.f}},"aria-label":"list"},L(n,b.a,{isActive:a===w.f}));default:return!1}}},{key:"renderLayoutButtons",value:function(){var e=this.props.plpTypes;return 2!==e.length?null:L(n,"div",{block:"CategoryPage",elem:"LayoutButtons"},e.map(this.renderLayoutButton.bind(this)))}},{key:"renderItemsCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,r=t.isMatchingListFilter,i=t.isMobile;return e&&!i||!e&&i?null:L(n,p.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,s=e.isCurrentCategoryLoaded,c=e.isMatchingInfoFilter,u=this.state.activeLayoutType;return this.displayProducts()?L(n,"div",{block:"CategoryPage",elem:"ProductListWrapper",mods:{isPrerendered:Object(k.b)()||Object(k.a)()}},this.renderItemsCount(!0),L(n,h.a,{filter:t,search:r,sort:i,selectedFilters:a,isCurrentCategoryLoaded:s,isMatchingListFilter:o,isMatchingInfoFilter:c,layout:u||w.d})):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:L(n,"div",{block:"CategoryPage",elem:"CMS"},L(n,m.a,{content:t}))}},{key:"renderMiscellaneous",value:function(){return L(n,"aside",{block:"CategoryPage",elem:"Miscellaneous"},this.renderItemsCount(),L(n,"div",{block:"CategoryPage",elem:"MiscellaneousLayoutWrapper"},L(n,"div",{block:"CategoryPage",elem:"LayoutWrapper",mods:{isPrerendered:Object(k.b)()||Object(k.a)()}},this.renderLayoutButtons(),this.renderCategorySort()),L(n,"div",{block:"CategoryPage",elem:"LayoutWrapper",mods:{isPrerendered:Object(k.b)()||Object(k.a)()}},this.renderFilterButton())))}},{key:"renderContent",value:function(){return L(n,n.Fragment,null,this.renderFilterOverlay(),this.renderCategoryDetails(),this.renderCmsBlock(),this.renderMiscellaneous(),this.renderCategoryProductList())}},{key:"render",value:function(){var e=!this.displayProducts(),t=this.props.totalItems;return L(n,"main",{block:"CategoryPage",mods:{noResults:0===t}},L(n,f.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=O.a.getItem(w.e)||n;return i?{activeLayoutType:t?w.d:i||r}:{activeLayoutType:t?w.d:n||r}}}]),r}(e.Extensible(l.PureComponent)),a.defaultProps={isContentFiltered:!0,isMatchingListFilter:!1,isCurrentCategoryLoaded:!1,isMatchingInfoFilter:!1,totalPages:1,defaultPlpType:"",plpTypes:[],search:"",appliedFiltersCount:0,selectedLayoutType:""},a),"Route/CategoryPage/Component")}).call(this,r(9).default,r(1),r(28).default)},2015:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(18),d=(r(112),r(1938)),p=r(2145),h=e.middleware((function(e){return{isMobile:e.ConfigReducer.device.isMobile}}),"PeggysagePwa/Component/CategoryDetails/Container/mapStateToProps"),g=e.middleware((function(){return{}}),"PeggysagePwa/Component/CategoryDetails/Container/mapDispatchToProps"),f=r(13).checkBEMProps,v=e.middleware((i=function(e){Object(s.a)(r,e);var t=Object(c.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={},e.state={areVideoBlocksInitialized:!1},e.descriptionRef=Object(u.createRef)(),e}
1return Object(o.a)(r,[{key:"componentDidMount",value:function(){this.initVideoBlocks()}},{key:"componentDidUpdate",value:function(){this.initVideoBlocks()}},{key:"initVideoBlocks",value:function(){var e,t=this.state.areVideoBlocksInitialized,r=null===(e=this.descriptionRef)||void 0===e?void 0:e.current;!t&&r&&this.handleVideoBlocks()}},{key:"handleVideoBlocks",value:function(){var e,t=null===(e=this.descriptionRef)||void 0===e?void 0:e.current;this.setState({areVideoBlocksInitialized:!0}),Object(d.a)(t)}},{key:"containerProps",value:function(){var e=this.props;return{isMobile:e.isMobile,category:e.category,isCurrentCategoryLoaded:e.isCurrentCategoryLoaded,descriptionRef:this.descriptionRef}}},{key:"render",value:function(){return f(n,p.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(u.PureComponent)),i.defaultProps={isCurrentCategoryLoaded:!0},i),"PeggysagePwa/Component/CategoryDetails/Container");t.a=Object(l.b)(h,g)(v)}).call(this,r(9).default,r(1))},2016:function(e,t,r){"use strict";(function(e){var n=r(2),i=r(18),a=r(2147),o=r(2017),s=e.middleware((function(e){return Object(n.a)({},Object(a.b)(e))}),"PeggysagePwa/Component/CategoryItemsCount/Container/mapStateToProps"),c=e.middleware((function(e){return Object(n.a)({},Object(a.a)(e))}),"PeggysagePwa/Component/CategoryItemsCount/Container/mapDispatchToProps");t.a=Object(i.b)(s,c)(o.a)}).call(this,r(9).default)},2017:function(e,t,r){"use strict";(function(e,n,i){var a,o=r(2),s=r(3),c=r(4),u=r(5),l=r(6),d=r(0),p=r.n(d),h=r(76),g=r(2148),f=(r(1418),r(13).checkBEMProps),v=e.middleware((a=function(e){Object(u.a)(r,e);var t=Object(l.a)(r);function r(){return Object(s.a)(this,r),t.apply(this,arguments)}return Object(c.a)(r,[{key:"renderCountOnly",value:function(){var e=this.props,t=e.totalItems;return e.isMatchingListFilter?t:null}},{key:"render",value:function(){var e=this.props,t=e.totalItems,r=e.isMatchingListFilter;return e.countOnly?this.renderCountOnly():f(n,"p",{block:"CategoryPage",elem:"ItemsCount"},f(n,h.a,{content:r?i("%s items found",t):i("Products are loading...")}))}}]),r}(e.Extensible(g.a)),a.propTypes=Object(o.a)(Object(o.a)({},g.a.propTypes),{},{countOnly:p.a.bool}),a.defaultProps=Object(o.a)(Object(o.a)({},g.a.defaultProps),{},{countOnly:!1}),a),"PeggysagePwa/Component/CategoryItemsCount/Component");t.a=v}).call(this,r(9).default,r(1),r(28).default)},2036:function(e,t,r){"use strict";var n=r(1918);r.d(t,"a",(function(){return n.a}))},2037:function(e,t,r){"use strict";(function(e,n,i){var a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(121),d=r(1803),p=r(41),h=(r(112),r(1767),r(36)),g=r(38),f=r(240),v=(r(1387),r(13).checkBEMProps),y=e.middleware(function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"renderTitle",value:function(){var e=this.props.content.limitation_customer_group_ids;if(!e)return"";var t=e.includes(p.x)||e.includes(p.w)?n("aux pros"):"",r=e.includes(p.y)?n("aux \xe9tudiants"):"",a=e.includes(1),o=!t&&!r||a?n("aux utilisateurs connect\xe9s"):"".concat(t).concat(t&&r?" ".concat(n("et")," "):"").concat(r),s="".concat(n("Ce contenu est r\xe9serv\xe9")," ").concat(o);return v(i,"h1",{block:"RestrictedContentSignIn",elem:"Title"},s)}},{key:"renderCreateAccountLink",value:function(e){var t;return v(i,"p",{key:e},v(i,l.a,{to:Object(f.a)(e)},n("Cr\xe9er un compte %s",(null===(t=p.v[e])||void 0===t?void 0:t.singular.toLowerCase())||"")))}},{key:"renderCreateAccountLinks",value:function(){var e=this.props.content.limitation_customer_group_ids;return e?v(i,"div",{block:"RestrictedContentSignIn",elem:"CreateAccountLinks"},e.map(this.renderCreateAccountLink.bind(this))):""}},{key:"renderDescription",value:function(){var e=this.props.content.limitation_customer_group_ids;if(!e)return"";var t=e.includes(p.x)||e.includes(p.w)?p.v[p.x].singular.toLowerCase():"",r=e.includes(p.y)?p.v[p.y].singular.toLowerCase():"",a=e.includes(1)||!t&&!r?n("Peggy Sage"):"".concat(t).concat(t&&r?" ".concat(n("ou")," "):"").concat(r),o=Object(h.i)()?n("Vous devez avoir un compte %s pour acc\xe9der \xe0 ce contenu.",a):n("Connectez-vous ou cr\xe9ez un compte %s pour acc\xe9der \xe0 cette page.",a);return v(i,"div",{block:"RestrictedContentSignIn",elem:"Description"},v(i,"p",null,o))}},{key:"renderLoginForm",value:function(){var e=this.props,t=e.isLoading,r=e.setLoadingState,n=e.handleForgotPassword,a=e.handleCreateAccount,o=e.onSignIn;return Object(h.i)()?null:v(i,"div",{block:"RestrictedContentSignIn",elem:"Form"},v(i,d.a,{state:{},onFormError:g.e,handleForgotPassword:n,handleCreateAccount:a,isCheckout:!1,setLoadingState:r,isLoading:t,onSignIn:o}))}},{key:"render",value:function(){return v(i,"div",{block:"RestrictedContentSignIn"},v(i,"div",{block:"RestrictedContentSignIn",elem:"Header"},this.renderTitle(),this.renderDescription()),this.renderLoginForm(),this.renderCreateAccountLinks())}}]),r}(e.Extensible(u.PureComponent)),"PeggysagePwa/Component/RestrictedContentSignIn/Component");t.a=y}).call(this,r(9).default,r(28).default,r(1))},2038:function(e,t,r){e.exports=function(e,t){if(void 0==t&&(t={fuzzy:!0}),/youtu\.?be/.test(e)){var r,n=[/youtu\.be\/([^#\&\?]{11})/,/\?v=([^#\&\?]{11})/,/\&v=([^#\&\?]{11})/,/embed\/([^#\&\?]{11})/,/\/v\/([^#\&\?]{11})/];for(r=0;r<n.length;++r)if(n[r].test(e))return n[r].exec(e)[1];if(t.fuzzy){var i=e.split(/[\/\&\?=#\.\s]/g);for(r=0;r<i.length;++r)if(/^[^#\&\?]{11}$/.test(i[r]))return i[r]}}return null}},2040:function(e,t,r){"use strict";
1(function(e){var n=r(7),i=r(3),a=r(4),o=r(19),s=r(17),c=r(5),u=r(6),l=r(134),d=r(2041),p=r(8),h=e.middleware(function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(i.a)(this,r),t.apply(this,arguments)}return Object(a.a)(r,[{key:"_getDefaultFields",value:function(){return[].concat(Object(n.a)(Object(o.a)(Object(s.a)(r.prototype),"_getDefaultFields",this).call(this)),["liste_collections","image_collection","image_collection_ambiance","est_collection","collection_category_name","description_secondaire",new p.a("restricted_groups").setAlias("limitation_customer_group_ids"),this._getContentPushField(),this._getAvisField()])}},{key:"_getContentPushField",value:function(){return new p.a("content_push").addFieldList(["supertitle","title","page_identifier","image_url","position"])}},{key:"_getAvisField",value:function(){return new p.a("avis").addFieldList(["title","subtitle","description","photo"])}},{key:"getCategoryFeaturedProducts",value:function(e){return new p.a("getCategoryFeaturedProducts").addArgument("id","Int!",e).addFieldList(l.b.setOptions({isPlp:!0,isSingleProduct:!1})._getProductInterfaceFields(!1,!1,!1))}}]),r}(e.Extensible(d.a)),"PeggysagePwa/Query/Category/Query");t.a=new h}).call(this,r(9).default)},2041:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return p}));var i=r(7),a=r(3),o=r(4),s=r(19),c=r(17),u=r(5),l=r(6),d=r(8),p=e.middleware(function(e){Object(u.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(s.a)(Object(c.a)(r.prototype),"__construct",this).call(this),this.options={}}},{key:"getQuery",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options=t,(e=new d.a("category")).addArgument.apply(e,Object(i.a)(this._getConditionalArguments())).addFieldList(this._getDefaultFields()).addField(this._getChildrenFields())}},{key:"_getConditionalArguments",value:function(){var e=this.options.categoryIds;if(e)return["id","Int!",e];throw new Error(n("There was an error requesting the category"))}},{key:"_getChildrenFields",value:function(){return new d.a("children").addFieldList(this._getDefaultFields())}},{key:"_getBreadcrumbsField",value:function(){return new d.a("breadcrumbs").addFieldList(this._getBreadcrumbFields())}},{key:"_getBreadcrumbFields",value:function(){return["category_name","category_level","category_url","category_is_active"]}},{key:"_getCmsBlockFields",value:function(){return["content","disabled","title","identifier"]}},{key:"_getCmsBlockField",value:function(){return new d.a("cms_block").addFieldList(this._getCmsBlockFields())}},{key:"_getDefaultFields",value:function(){return["id","url","name","image","url_key","url_path","is_active","meta_title","description","canonical_url","product_count","meta_keywords","default_sort_by","meta_description","landing_page","display_mode","is_anchor",this._getCmsBlockField(),this._getBreadcrumbsField()]}}]),r}(e.Extensible()),"Query/Category/Query");new p}).call(this,r(9).default,r(28).default)},2042:function(e,t,r){"use strict";var n=r(1920);r.d(t,"a",(function(){return n.a}))},2043:function(e,t,r){"use strict";var n=r(1921);r.d(t,"a",(function(){return n.a}))},2068:function(e,t,r){"use strict";(function(e,n){r.d(t,"d",(function(){return x})),r.d(t,"c",(function(){return S})),r.d(t,"a",(function(){return F}));var i,a=r(3),o=r(4),s=r(19),c=r(17),u=r(5),l=r(6),d=r(2),p=r(1848),h=r(453),g=r.n(h),f=r(0),v=r.n(f),y=r(18),m=r(461),b=r(67),P=r(2149),C=r(2150),k=r(1876),O=r(62),w=r(111),j=r(454),L=r.e(30).then(r.bind(null,1352)),x=e.middleware((function(e){return Object(d.a)(Object(d.a)({},Object(C.c)(e)),{},{customer:e.MyAccountReducer.customer})}),"PeggysagePwa/Route/CategoryPage/Container/mapStateToProps"),S=e.middleware((function(e){return Object(d.a)(Object(d.a)({},Object(C.b)(e)),{},{updateWidgets:function(t){L.then((function(r){return r.default.handleData(e,t)}))}})}),"PeggysagePwa/Route/CategoryPage/Container/mapDispatchToProps"),_=r(13).checkBEMProps,F=e.middleware((i=function(e){Object(u.a)(r,e);var t=Object(l.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))).config={sortDirection:b.h.asc,sortKey:"position"},e.state=Object(d.a)(Object(d.a)({},e.state),{},{hasUserAccess:!0}),e.debouncedUpdateWidgets=g()(e.updateWidgets,200),e}
1return Object(o.a)(r,[{key:"containerProps",value:function(){var e=this.state.hasUserAccess;return Object(d.a)(Object(d.a)({},Object(s.a)(Object(c.a)(r.prototype),"containerProps",this).call(this)),{},{hasUserAccess:e})}},{key:"componentDidMount",value:function(){Object(s.a)(Object(c.a)(r.prototype),"componentDidMount",this).call(this),this.updateUserAccess()}},{key:"componentDidUpdate",value:function(e){Object(s.a)(Object(c.a)(r.prototype),"componentDidUpdate",this).call(this,e);var t=this.props,n=t.customer,i=(n=void 0===n?{}:n).group_id,a=void 0===i?0:i,o=t.category.id,u=t.categoryIds,l=e.customer,d=(l=void 0===l?{}:l).group_id,p=void 0===d?0:d,h=e.category.id,g=e.categoryIds,f=this.state.breadcrumbsWereUpdated;a===p&&o===h||this.updateUserAccess(),(f||(o!==h||!f&&o===u)||u!==g||u!==o)&&this.debouncedUpdateWidgets()}},{key:"updateWidgets",value:function(){var e=this.props,t=e.category.id,r=e.updateWidgets;t&&r({entityType:"catalog_category",entityId:t})}},{key:"getIsMatchingListFilter",value:function(){var e=this.props.currentArgs,t=(e=void 0===e?{}:e).sort,r=e.filter;return JSON.stringify(r)===JSON.stringify(this.getFilter())&&JSON.stringify(t)===JSON.stringify(this.getSelectedSortFromUrl())}},{key:"onFilterButtonClick",value:function(){(0,this.props.toggleOverlayByKey)(m.a),Object(w.e)(!1)}},{key:"render",value:function(){var e=this.config.pageSize,t=this.state,r=t.defaultPlpType,i=t.selectedLayoutType,a=t.activeLayoutType,o=this.props.category.liste_collections;return _(n,o?P.a:p.b,Object.assign({pageSize:e,defaultPlpType:r,selectedLayoutType:i,activeLayoutType:a},this.containerFunctions,this.containerProps()))}},{key:"updateUserAccess",value:function(){var e=this.props.category.limitation_customer_group_ids,t=void 0===e?[]:e;this.setState({hasUserAccess:this.canUserAccess(t)})}},{key:"canUserAccess",value:function(e){if(!e||!e.length||e.includes(0))return!0;var t=this.props.customer,r=(t=void 0===t?{}:t).group_id,n=void 0===r?0:r;return e.includes(n)}}]),r}(e.Extensible(C.a)),i.propTypes=Object(d.a)(Object(d.a)({},C.a.propTypes),{},{customer:O.i.isRequired,updateWidgets:v.a.func.isRequired}),i),"PeggysagePwa/Route/CategoryPage/Container");t.b=Object(j.a)({CategoryReducer:k.a})(Object(y.b)(x,S)(F))}).call(this,r(9).default,r(1))},2069:function(e,t,r){"use strict";var n=r(2016);r.d(t,"a",(function(){return n.a}))},2137:function(e,t,r){"use strict";var n=r(2009);r.d(t,"a",(function(){return n.a}))},2138:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(95),d=r(76),p=(r(112),r(40),r(1337),r(1338),r(1411),r(13).checkBEMProps),h=e.middleware((i=function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"renderCategoryDescriptionPlaceholder",value:function(){return p(n,"p",null,p(n,d.a,{length:"long"}))}},{key:"renderCategoryDescription",value:function(){var e=this.props,t=(e.isMobile,e.category),r=t.description_secondaire,i=t.id,a=e.isCurrentCategoryLoaded,o=e.descriptionRef;return i&&a?r?p(n,"div",{block:"CategoryDetails",elem:"DescriptionInner",ref:o},p(n,"div",{block:"CategoryDetails",elem:"DescriptionFull"},p(n,l.a,{content:r}))):null:this.renderCategoryDescriptionPlaceholder()}},{key:"render",value:function(){return p(n,"article",{block:"CategoryDetails"},p(n,"div",{block:"CategoryDetails",elem:"Description"},this.renderCategoryDescription()))}}]),r}(e.Extensible(u.PureComponent)),i.defaultProps={isCurrentCategoryLoaded:!0},i),"PeggysagePwa/Component/CategoryDetailsBottom/Component");t.a=h}).call(this,r(9).default,r(1))},2139:function(e,t,r){"use strict";var n=r(2010);r.d(t,"a",(function(){return n.a}))},2140:function(e,t,r){"use strict";(function(e,n,i){var a,o=r(3),s=r(4),c=r(5),u=r(6),l=r(1),d=r(458),p=r(76),h=(r(40),r(42),r(38)),g=(r(1412),r(13).checkBEMProps),f=e.middleware((a=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"renderTitle",value:function(){var e=this.props,t=e.firstname,r=e.isLoading,a=n("S\xe9lectionn\xe9s pour vous %s",t);return g(i,"h2",{block:"CategoryFeaturedProducts",elem:"Title"},r&&g(i,p.a,{length:"short"}),!r&&a)}},{key:"renderContent",value:function(){var e=this.props,t=e.items,r=e.isLoading;return g(i,"div",{block:"CategoryFeaturedProducts",elem:"Content"},g(i,d.a,{isInfiniteLoaderEnabled:!1,isLoading:r,isVisible:!0,updatePages:h.e,items:t,isPlp:!0}))}},{key:"render",value:function(){var e=this.props,t=e.isLoading,r=e.items,n=e.mix;return t||r&&r.length?g(i,"div",{block:"CategoryFeaturedProducts",mix:n},this.renderTitle(),this.renderContent()):null}}]),r}(e.Extensible(l.PureComponent)),a.defaultProps={items:[],isLoading:!1},a),"PeggysagePwa/Component/CategoryFeaturedProducts/Component");t.a=f}).call(this,r(9).default,r(28).default,r(1))},2141:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return v})),r.d(t,"b",(function(){return y}
1)),r.d(t,"a",(function(){return b}));var i,a=r(2),o=r(3),s=r(4),c=r(11),u=r(5),l=r(6),d=r(1),p=r(18),h=r(1847),g=r(114),f=(r(112),r(200),r(42),r(1413),r.e(30).then(r.bind(null,2314))),v=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"),y=e.middleware((function(e){return{requestProductList:function(t){return f.then((function(r){return r.default.handleData(e,t)}))},updateLoadStatus:function(t){return e(Object(g.g)(t))}}}),"Component/CategoryProductList/Container/mapDispatchToProps"),m=r(13).checkBEMProps,b=e.middleware((i=function(e){Object(u.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(c.a)(e))},e}return Object(s.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(Object(a.a)(Object(a.a)({},e),{},{isPlp:!0}))}},{key:"containerProps",value:function(){var e=this.props,t=e.filter,r=e.isPageLoading,n=e.pages,i=e.search,a=e.selectedFilters,o=e.sort,s=e.totalItems,c=e.totalPages,u=e.isPlp;return{filter:t,isPageLoading:r,pages:n,search:i,selectedFilters:a,sort:o,totalItems:s,totalPages:c,isLoading:this.getIsLoading(),isPreventRequest:this.getIsPreventRequest(),isPlp:u,mix:{block:"CategoryProductList",mods:{layout:this.getLayout()}}}}},{key:"render",value:function(){return m(n,h.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(d.PureComponent)),i.defaultProps={isMatchingListFilter:!1,isMatchingInfoFilter:!1,isCurrentCategoryLoaded:!1,filter:{},layout:"grid",totalPages:1,search:"",sort:void 0,selectedFilters:{},isPageLoading:!1,isPlp:!0},i),"Component/CategoryProductList/Container");Object(p.b)(v,y)(b)}).call(this,r(9).default,r(1))},2142:function(e,t,r){"use strict";var n=r(2013);r.d(t,"a",(function(){return n.a}))},2143:function(e,t,r){"use strict";(function(e){var n=r(3),i=r(4),a=r(5),o=r(6),s=r(1),c=r.n(s),u=r(1905),l=r(95),d=r(72),p=(r(112),r(1415),r(13).checkBEMProps),h=e.middleware(function(e){Object(a.a)(r,e);var t=Object(o.a)(r);function r(){return Object(n.a)(this,r),t.apply(this,arguments)}return Object(i.a)(r,[{key:"renderVisual",value:function(){var e=this.props.review,t=e.title,r=void 0===t?"":t,n=e.photo;return n?p(c.a,"div",{block:"CategoryReview",elem:"Visual"},p(c.a,d.a,{src:n,ratio:"custom",mix:{block:"CategoryReview",elem:"VisualThumbnail"},alt:r})):null}},{key:"renderTitle",value:function(){var e=this.props.review.title;return e?p(c.a,"div",{block:"CategoryReview",elem:"Title"},e):null}},{key:"renderSubTitle",value:function(){var e=this.props.review.subtitle;return e?p(c.a,"div",{block:"CategoryReview",elem:"SubTitle"},e):null}},{key:"renderDescription",value:function(){var e=this.props.review.description;return e?p(c.a,u.a,{mix:{block:"CategoryReview",elem:"Description"},maxNumLines:3},p(c.a,l.a,{content:e})):null}},{key:"renderContent",value:function(){return p(c.a,"div",{block:"CategoryReview",elem:"Content"},this.renderTitle(),this.renderSubTitle(),this.renderDescription())}},{key:"render",value:function(){return p(c.a,"div",{block:"CategoryReview"},this.renderVisual(),this.renderContent())}}]),r}(e.Extensible(s.PureComponent)),"PeggysagePwa/Component/CategoryReview/Component");t.a=h}).call(this,r(9).default)},2144:function(e,t,r){"use strict";var n=r(2015);r.d(t,"a",(function(){return n.a}))},2145:function(e,t,r){"use strict";(function(e,n){var i,a=r(2),o=r(3),s=r(4),c=r(5),u=r(6),l=r(0),d=r.n(l),p=r(1905),h=r(95),g=r(2146),f=r(40),v=(r(1337),r(1338),r(1417),r(13).checkBEMProps),y=e.middleware((i=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"renderCategoryDescription",value:function(){var e=this.props,t=e.isMobile,r=e.category,i=r.description,a=r.i
1d,o=e.isCurrentCategoryLoaded,s=e.descriptionRef;return a&&o?i?v(n,"div",{block:"CategoryDetails",elem:"DescriptionInner",ref:s},t?v(n,p.a,{mix:{block:"CategoryDetails",elem:"Expandable"},maxNumLines:3},v(n,h.a,{content:i})):v(n,"div",{block:"CategoryDetails",elem:"DescriptionFull"},v(n,h.a,{content:i}))):null:this.renderCategoryDescriptionPlaceholder()}},{key:"renderCategoryImage",value:function(){return null}}]),r}(e.Extensible(g.a)),i.propTypes=Object(a.a)(Object(a.a)({},g.a.propTypes),{},{isMobile:d.a.bool.isRequired,descriptionRef:f.e.isRequired}),i),"PeggysagePwa/Component/CategoryDetails/Component");t.a=y}).call(this,r(9).default,r(1))},2146:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return g}));var i,a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(95),d=r(72),p=r(76),h=(r(112),r(1416),r(13).checkBEMProps),g=e.middleware((i=function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"renderCategoryText",value:function(){var e=this.props,t=e.category.name,r=e.isCurrentCategoryLoaded;return h(n,p.a,r?{content:t}:null)}},{key:"renderCategoryName",value:function(){var e=this.props.category,t=e.name;return e.id&&!t?null:h(n,"h1",{block:"CategoryDetails",elem:"Heading"},this.renderCategoryText())}},{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,l.a,{content:r}):null:this.renderCategoryDescriptionPlaceholder()}},{key:"renderCategoryDescriptionPlaceholder",value:function(){return h(n,"p",null,h(n,p.a,{length:"long"}))}},{key:"renderCategoryImagePlaceholder",value:function(){return h(n,d.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,d.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(u.PureComponent)),i.defaultProps={isCurrentCategoryLoaded:!0},i),"Component/CategoryDetails/Component")}).call(this,r(9).default,r(1))},2147:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return o}));var n=r(18),i=r(2017),a=e.middleware((function(e){return{totalItems:e.ProductListReducer.totalItems}}),"Component/CategoryItemsCount/Container/mapStateToProps"),o=e.middleware((function(){return{}}),"Component/CategoryItemsCount/Container/mapDispatchToProps");Object(n.b)(a,o)(i.a)}).call(this,r(9).default)},2148:function(e,t,r){"use strict";(function(e,n,i){r.d(t,"a",(function(){return h}));var a,o=r(3),s=r(4),c=r(5),u=r(6),l=r(1),d=r(76),p=r(13).checkBEMProps,h=e.middleware((a=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"render",value:function(){var e=this.props,t=e.totalItems,r=e.isMatchingListFilter;return p(n,"p",{block:"CategoryPage",elem:"ItemsCount"},p(n,d.a,{content:r?i("%s items found",t):i("Products are loading...")}))}}]),r}(e.Extensible(l.PureComponent)),a.defaultProps={isMatchingListFilter:!1},a),"Component/CategoryItemsCount/Component")}).call(this,r(9).default,r(1),r(28).default)},2149:function(e,t,r){"use strict";(function(e,n,i){var a=r(3),o=r(4),s=r(5),c=r(6),u=r(1971),l=r(273),d=r(1848),p=(r(1421),r(13).checkBEMProps),h=e.middleware(function(e){Object(s.a)(r,e);var t=Object(c.a)(r);function r(){return Object(a.a)(this,r),t.apply(this,arguments)}return Object(o.a)(r,[{key:"renderCollection",value:function(e){return p(n,u.a,{collection:e})}},{key:"renderNoCollections",value:function(){return p(n,"div",{block:"CollectionListPage",elem:"WrapperItems"},p(n,"div",{block:"CollectionListPage",elem:"CollectionsMissing"},p(n,"h2",null,i("We are sorry!")),p(n,"h3",null,i("There were no collections foun
1d."))))}},{key:"renderCollectionList",value:function(){var e=this,t=this.props.category.children;if(!t||!t.length)return this.renderNoCollections();var r=t.filter((function(e){return e.est_collection}));return r.length?p(n,"div",{block:"CollectionListPage",elem:"WrapperItems"},p(n,"ul",{block:"CollectionListPage",elem:"Items"},r.map((function(t,r){return p(n,"li",{block:"CollectionListPage",elem:"Item",key:r},e.renderCollection(t))})))):this.renderNoCollections()}},{key:"renderContent",value:function(){return p(n,n.Fragment,null,this.renderCategoryDetails(),this.renderFilterOverlay(),this.renderCollectionList())}},{key:"render",value:function(){var e=!this.displayProducts(),t=this.props.totalItems;return p(n,"main",{block:"CategoryPage",mods:{noResults:0===t},className:"CollectionListPage"},p(n,l.a,{wrapperMix:{block:"CategoryPage",elem:"Wrapper",mods:{hideProducts:e},className:"CollectionListPage-Wrapper"},label:"Collection list page"},this.renderContent()))}}]),r}(e.Extensible(d.a)),"PeggysagePwa/Route/CollectionListPage/Component");t.a=h}).call(this,r(9).default,r(1),r(28).default)},2150:function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return A})),r.d(t,"b",(function(){return D})),r.d(t,"a",(function(){return q}));var i,a=r(10),o=r(2),s=r(12),c=r(3),u=r(4),l=r(11),d=r(5),p=r(6),h=r(1),g=r(18),f=r(461),v=r(32),y=r(1911),m=r(67),b=r(373),P=r(1876),C=r(135),k=r(150),O=r(236),w=r(99),j=r(374),L=(r(112),r(42),r(133),r(111)),x=r(16),S=r(466),_=r(454),F=r(34),I=r(94),E=r(1848),M=r.e(30).then(r.bind(null,1800)),T=r.e(30).then(r.bind(null,1324)),R=r.e(30).then(r.bind(null,2281)),B=r.e(30).then(r.bind(null,2167)),N=r.e(30).then(r.bind(null,910)),A=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,totalItems:e.ProductListReducer.totalItems,plpType:e.ConfigReducer.plp_list_mode,isMobile:e.ConfigReducer.device.isMobile}}),"Route/CategoryPage/Container/mapStateToProps"),D=e.middleware((function(e){return{toggleOverlayByKey:function(t){return e(Object(w.f)(t))},changeHeaderState:function(t){return e(Object(C.c)(k.b,t))},changeNavigationState:function(t){return e(Object(C.c)(k.a,t))},requestCategory:function(t){return R.then((function(r){return r.default.handleData(e,t)}))},updateBreadcrumbs:function(t){return Object.keys(t).length?T.then((function(r){return r.default.updateWithCategory(t,e)})):T.then((function(t){return t.default.update([],e)}))},requestProductListInfo:function(t){return M.then((function(r){return r.default.handleData(e,t)}))},updateLoadStatus:function(t){return e(Object(j.c)(t))},updateNoMatch:function(t){return N.then((function(r){return r.default.updateNoMatch(e,t)}))},setBigOfflineNotice:function(t){return e(Object(O.c)(t))},updateMetaFromCategory:function(t){return B.then((function(r){return r.default.updateWithCategory(t,e)}))},clearCategory:function(){return e(Object(b.d)({}))}}}),"Route/CategoryPage/Container/mapDispatchToProps"),V=r(13).checkBEMProps,q=e.middleware((i=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))).state={currentCategoryIds:-1,breadcrumbsWereUpdated:!1,selectedLayoutType:null},e.config={sortKey:"name",sortDirection:m.h.asc},e.containerFunctions={onSortChange:e.onSortChange.bind(Object(l.a)(e)),onGridButtonClick:e.onGridButtonClick.bind(Object(l.a)(e)),onListButtonClick:e.onListButtonClick.bind(Object(l.a)(e)),onFilterButtonClick:e.onFilterButtonClick.bind(Object(l.a)(e))},e.setOfflineNoticeSize=e.setOfflineNoticeSize.bind(Object(l.a)(e)),e}return Object(u.a)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.categoryIds,r=e.category.id;Object(L.d)(),this.updateNavigationState(),this.updateHistory(),t===r?(this.updateBreadcrumbs(),this.updateHeaderState(),this.updateMeta()):(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,s=this.state.breadcrumbsWereUpdated,c=e.categoryIds,u=e.category.id,l=e.currentArgs,d=(l=void 0===l?{}:l).filter;r&&Object(F.c)(this.setOfflineNoticeSize,m.g)(),n!==c&&this.updateHistory(),n!==i&&this.requestCategory();var p=i!==u||!s&&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(){x.a.setItem(m.d,m.e),this.setState({selectedLayoutType:m.d})}},{key:"onListButtonClick",value:function(){x.a.setItem(m.f,m.e),this.setState({selectedLayoutType:m.f})}},{key:"onSortChange",value:function(e,t){var r=this.props,n=r.location,i=r.history;Object(I.j)({sortKey:t,sortDirection:e,page:""},n,i),this.updateMeta()}},{key:"onFilterButtonClick",value:function(){(0,this.props.toggleOverlayByKey)(f.a)}},{key:"setOfflineNoticeSize",value:function(){var e=this.props,t=e.setBigOfflineNotice;t(!!e.isInfoLoading)}},{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(I.d)("page",t)||1)}},{key:"getIsMatchingInfoFilter",value:function(){var e=this.props;return e.categoryIds===e.selectedInfoFilter.categoryIds}},{key:"getAppliedFiltersCount",value:function(){var e=this.props.selectedInfoFilter.customFilters,t=void 0===e?{}:e;return Object(S.a)(t)}},{key:"isCurrentCategoryLoaded",value:function(){var e=this.props,t=e.categoryIds,r=e.category.id;return e.isSearchPage||t===r}},{key:"containerProps",value:function(){var e=this.props,t=e.category,r=e.filters,n=e.isMobile,i=e.sortFields,a=e.totalPages,o=e.totalItems,s=e.isSearchPage;return{appliedFiltersCount:this.getAppliedFiltersCount(),category:t,defaultPlpType:this.getDefaultPlpType(),filter:this.getFilter(),filters:r,isContentFiltered:this.isContentFiltered(),isCurrentCategoryLoaded:this.isCurrentCategoryLoaded(),isMatchingInfoFilter:this.getIsMatchingInfoFilter(),isMatchingListFilter:this.getIsMatchingListFilter(),isMobile:n,isSearchPage:s,plpTypes:this.getPlpTypes(),selectedFilters:this.getSelectedFiltersFromUrl(),selectedSort:this.getSelectedSortFromUrl(),sortFields:i,totalPages:a,totalItems:o}}},{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(s.a)(r,2),i=n[0],c=n[1];return Object(o.a)(Object(o.a)({},e),{},Object(a.a)({},i,c))}),{})}},{key:"getSelectedFiltersFromUrl",value:function(){var e=this.props.location;return(Object(I.d)("customFilters",e)||"").split(";").reduce((function(e,t){if(!t)return e;var r=t.split(":"),n=Object(s.a)(r,2),i=n[0],c=n[1];return Object(o.a)(Object(o.a)({},e),{},Object(a.a)({},i,c.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(I.d)("sortDirection",t)||a,sortKey:Object(I.d)("sortKey",t)||o}}},{key:"getSelectedPriceRangeFromUrl",value:function(){var e=this.props.location;return{min:+Object(I.d)("priceMin",e),max:+Object(I.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,s=r.state,c=void 0===s?{}:s,u=c.category;-1!==n&&u!==n&&t.replace({pathname:a,search:i,state:Object(o.a)(Object(o.a)({},c),{},{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(o.a)(Object(o.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:y.e})}},{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)||{},s=o.category,c=s?function(){return a.goBack()}:function(){return a.push(Object(I.a)("/menu"))},u=t?void 0:i;n({name:v.d,title:u,onBackClick:c})}},{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 V(n,E.b,Object.assign({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,s={};if(!n||!i)if(o.match("-")){var c=o.split("-");Object.assign(s,{defaultPlpType:c[0],plpTypes:c})}else Object.assign(s,{defaultPlpType:o,plpTypes:[o]});return r===a&&Object.assign(s,{currentCategoryIds:-1}),Object.keys(s).length?s:null}}]),r}
1(e.Extensible(h.PureComponent)),i.defaultProps={categoryIds:-1,isSearchPage:!1,currentArgs:{},selectedInfoFilter:{},plpType:""},i),"Route/CategoryPage/Container");Object(_.a)({CategoryReducer:P.a})(Object(g.b)(A,D)(q))}).call(this,r(9).default,r(1))},2459:function(e,t,r){"use strict";var n=r(0),i=r.n(n);i.a.shape({id:i.a.number,name:i.a.string,description:i.a.string,image:i.a.string,url:i.a.string,date_from:i.a.string,date_for:i.a.string,restricted_groups:i.a.arrayOf(i.a.number),mentions_legales:i.a.string})},2645:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(4),o=r(5),s=r(6),c=r(2),u=r(18),l=r(67),d=r(2068),p=r(1876),h=r(454),g=r(2962),f=e.middleware((function(e){return Object(c.a)({},Object(d.d)(e))}),"PeggysagePwa/Route/OurOffers/Container/mapStateToProps"),v=e.middleware((function(e){return Object(c.a)({},Object(d.c)(e))}),"PeggysagePwa/Route/OurOffers/Container/mapDispatchToProps"),y=r(13).checkBEMProps,m=e.middleware(function(e){Object(o.a)(r,e);var t=Object(s.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))).config={sortDirection:l.h.asc,sortKey:"position"},e}return Object(a.a)(r,[{key:"render",value:function(){var e=this.config.pageSize,t=this.state,r=t.defaultPlpType,i=t.selectedLayoutType,a=t.activeLayoutType;return y(n,g.a,Object.assign({pageSize:e,defaultPlpType:r,selectedLayoutType:i,activeLayoutType:a},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(d.a)),"PeggysagePwa/Route/OurOffers/Container");t.a=Object(h.a)({CategoryReducer:p.a})(Object(u.b)(f,v)(m))}).call(this,r(9).default,r(1))},2646:function(e,t,r){"use strict";(function(e,n){var i,a=r(31),o=r(3),s=r(4),c=r(5),u=r(6),l=r(1),d=r(18),p=r(2964),h=r(96),g=r(56),f=r(2965);function v(){v=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(x){s=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),o=new w(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return L()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,o),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(x){return{type:"throw",arg:x}}}e.wrap=c;var l={};function d(){}function p(){}function h(){}var g={};s(g,i,(function(){return this}));var f=Object.getPrototypeOf,y=f&&f(f(j([])));y&&y!==t&&r.call(y,i)&&(g=y);var m=h.prototype=d.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(d).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function C(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,e.iterator,t.arg);
vendor: 4,598 bytes, line 1
1if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,l;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,s(m,"constructor",h),s(h,"constructor",p),p.displayName=s(h,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,o,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},b(P.prototype),s(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new P(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(m),s(m,o,"Generator"),s(m,i,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=j,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}var y=e.middleware((function(){return{}}),"PeggysagePwa/Component/OurOfferList/Container/mapStateToProps"),m=e.middleware((function(e){return{showPopup:function(t,r){return e(Object(h.b)(t,r))}}}),"PeggysagePwa/Component/OurOfferList/Container/mapDispatchToProps"),b=r(13).checkBEMProps,P=e.middleware((i=function(t){Object(c.a)(i,t);var r=Object(u.a)(i);function i(){var e;Object(o.a)(this,i);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(e=r.call.apply(r,[this].concat(n))).state={offers:[],isLoading:!0},e}
1return Object(s.a)(i,[{key:"componentDidMount",value:function(){this.getData()}},{key:"containerProps",value:function(){var e=this.state;return{offers:e.offers,isLoading:e.isLoading}}},{key:"getData",value:function(){var t=Object(a.a)(v().mark((function t(){var r,n=this;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.props.cacheLifetime,t.abrupt("return",Object(g.b)(p.a.getOurOffers(),"getOurOffers",r).then(e.middleware((function(e){n.setState({offers:e.getOurOffers,isLoading:!1})}),"PeggysagePwa/Component/OurOfferList/Container/OurOfferListContainer/getData/then/catch/fetchQueryGet/then")).catch(e.middleware((function(){n.setState({isLoading:!1}),Promise.reject()}),"PeggysagePwa/Component/OurOfferList/Container/OurOfferListContainer/getData/then/catch")));case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){return b(n,f.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),i}(e.Extensible(l.PureComponent)),i.defaultProps={cacheLifetime:60},i),"PeggysagePwa/Component/OurOfferList/Container");t.a=Object(d.b)(y,m)(P)}).call(this,r(9).default,r(1))},2647:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(11),c=r(5),u=r(6),l=r(1),d=r(18),p=r(96),h=(r(40),r(2459),r(2967)),g=e.middleware((function(){return{}}),"PeggysagePwa/Component/OurOfferCard/Container/mapStateToProps"),f=e.middleware((function(e){return{showPopup:function(t,r){return e(Object(p.b)(t,r))}}}),"PeggysagePwa/Component/OurOfferCard/Container/mapDispatchToProps"),v=r(13).checkBEMProps,y=e.middleware((i=function(e){Object(c.a)(r,e);var t=Object(u.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))).state={isExpanded:!1},e.containerFunctions={onMentionsLegalesClick:e.onMentionsLegalesClick.bind(Object(s.a)(e))},e}return Object(o.a)(r,[{key:"onMentionsLegalesClick",value:function(){var e=this.state.isExpanded;this.setState({isExpanded:!e})}},{key:"containerProps",value:function(){var e=this.props;return{mix:e.mix,isLoading:e.isLoading,offer:e.offer,isExpanded:this.state.isExpanded}}},{key:"render",value:function(){return v(n,h.a,Object.assign({},this.containerFunctions,this.containerProps()))}}]),r}(e.Extensible(l.PureComponent)),i.defaultProps={isLoading:!1,mix:{}},i),"PeggysagePwa/Component/OurOfferCard/Container");t.a=Object(d.b)(g,f)(y)}).call(this,r(9).default,r(1))},2962:function(e,t,r){"use strict";(function(e,n){var i=r(3),a=r(4),o=r(5),s=r(6),c=r(273),u=r(2963),l=r(1848),d=(r(1696),r(13).checkBEMProps),p=e.middleware(function(e){Object(o.a)(r,e);var t=Object(s.a)(r);function r(){return Object(i.a)(this,r),t.apply(this,arguments)}return Object(a.a)(r,[{key:"renderOurOffers",value:function(){return d(n,"div",{block:"OurOffersPage",elem:"ProductList"},d(n,u.a,null))}},{key:"renderItemsCount",value:function(){return null}},{key:"renderContent",value:function(){return d(n,n.Fragment,null,this.renderCategoryDetails(),d(n,"div",{block:"OurOffersPage",elem:"Content"},this.renderOurOffers()),this.renderCategoryDetailsBottom())}},{key:"render",value:function(){var e=!this.displayProducts(),t=this.props.totalItems;return d(n,"main",{block:"CategoryPage",mods:{noResults:0===t},className:"OurOffersPage"},d(n,c.a,{wrapperMix:{block:"CategoryPage",elem:"Wrapper",mods:{hideProducts:e},className:"OurOffersPage-Wrapper"},label:"Our offers page"},this.renderContent()))}}]),r}(e.Extensible(l.a)),"PeggysagePwa/Route/OurOffers/Component");t.a=p}).call(this,r(9).default,r(1))},2963:function(e,t,r){"use strict";var n=r(2646);r.d(t,"a",(function(){return n.a}))},2964:function(e,t,r){"use strict";(function(e){var n=r(3),i=r(4),a=r(5),o=r(6),s=r(8),c=e.middleware(function(e){Object(a.a)(r,e);var t=Object(o.a)(r);function r(){return Object(n.a)(this,r),t.apply(this,arguments)}return Object(i.a)(r,[{key:"getOurOffers",value:function(){return new s.a("getOurOffers").addFieldList(this._getOurOffersFields())}},{key:"_getOurOffersFields",value:function(){return["id","title","description","url","libelle_bouton","image","mobile","restricted_groups","date_from","date_to","mentions_legales","mentions_legales_titre"]}}]),r}(e.Extensible()),"PeggysagePwa/Query/OurOffer/Query");t.a=new c}).call(this,r(9).default)},2965:function(e,t,r){"use strict";(function(e,n,i){var a,o=r(3),s=r(4),c=r(5),u=r(6),l=r(1),d=r(2966),p=(r(2459),r(1695),r(13).checkBEMProps),h=e.middleware((a=function(e){Object(c.a)(r,e);var t=Object(u.a)(r);function r(){return Object(o.a)(this,r),t.apply(this,arguments)}return Object(s.a)(r,[{key:"renderOffer",value:function(e){return p(n,d.a,{offer:e,isExpanded:!1,key:e.id})}},{key:"renderContent",value:function(){var e=this.props.offers;return p(n,"div",{block:"OurOfferList",elem:"Offers"},e.map(this.renderOffer.bind(this)))}},{key:"renderNoOffers",value:function(){return p(n,"div",{block:"OurOfferList"},p(n,"div",{block:"OurOfferList",elem:"NoOffers"},p(n,"h2",null,i("We are sorry!")),p(n,"h3",null,i("No offers are currently available."))))}},{key:"render",value:function(){var e=this.props,t=e.isLoading,r=e.offers;return t?null:r&&r.length?p(n,"div",{block:"OurOfferList"},this.renderContent()):this.renderNoOffers()}}]),r}(e.Extensible(l.PureComponent)),a.defaultProps={offers:[]},a),"PeggysagePwa/Component/OurOfferList/Component");t.a=h}).call(this,r(9).default,r(1),r(28).default)},2966:function(e,t,r){"use strict";var n=r(2647);r.d(t,"a",(function(){return n.a}))},2967:function(e,t,r){"use strict";(function(e,n){var i,a=r(3),o=r(4),s=r(5),c=r(6),u=r(1),l=r(168),d=r(95),p=r(72),h=r(121),g=r(51),f=r(169),v=r(1791),y=r(76),m=(r(40),r(2459),r(1694),r(13).checkBEMProps),b=e.middleware((i=function(e){Object(s.a)(r,e);var t=Object(c.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))).className="OurOfferCard",e}return Object(o.a)(r,[{key:"renderPicture",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.offer,r=t.title,i=t.image,a=t.mobile;return this.sharedComponent=m(n,p.a,{src:i,alt:r,ratio:"custom",mix:{block:this.className,elem:"Picture",mods:{isDesktop:!0},mix:e},isPlaceholder:!i}),this.sharedComponentMobile=m(n,p.a,{src:a,alt:r,ratio:"custom",mix:{block:this.className,elem:"Picture",mods:{isMobile:!0},mix:e},isPlaceholder:!a}),m(n,n.Fragment,null,this.sharedComponent,this.sharedComponentMobile)}},{key:"renderPictureWrapper",value:function(){return m(n,"div",{block:this.className,elem:"FigureReview"},m(n,"figure",{block:this.className,elem:"Figure"}
1,this.renderPicture()))}},{key:"renderTitle",value:function(){var e=this.props.offer.title;return m(n,"p",{block:this.className,elem:"Title"},m(n,y.a,{content:e,length:"medium"}))}},{key:"renderDescription",value:function(){var e=this.props.offer.description;return e?m(n,"div",{block:this.className,elem:"Description"},m(n,d.a,{content:e})):null}},{key:"renderMentionsLegales",value:function(){var e=this.props,t=e.offer,r=t.mentions_legales,i=t.mentions_legales_titre,a=e.isExpanded,o=e.onMentionsLegalesClick;return r?m(n,"div",{mix:{block:this.className,elem:"Mentions-Legales",mods:{isExpanded:a}}},m(n,"button",{type:"button",onClick:o,title:i},m(n,"span",{block:this.className,elem:"buttonMentionsLegales-Title"},i),this.renderTogglePlusMinus()),m(n,"div",{block:this.className,elem:"Mentions-Legales-Content"},m(n,d.a,{content:r}))):null}},{key:"renderTogglePlusMinus",value:function(){var e=this.props.isExpanded;return m(n,n.Fragment,null,m(n,"span",{block:this.className,elem:"ToggleIcon",mods:{isVisible:e}},m(n,f.a,null)),m(n,"span",{block:this.className,elem:"ToggleIcon",mods:{isVisible:!e}},m(n,l.a,null)))}},{key:"renderLink",value:function(){var e=this.props.offer,t=e.url,r=e.libelle_bouton;return t&&r?m(n,h.a,{block:this.className,elem:"Link",to:t,className:"Button"},r):null}},{key:"renderCardContent",value:function(){return m(n,"div",{block:this.className,elem:"Inner"},this.renderPictureWrapper(),m(n,"div",{block:this.className,elem:"Content"},this.renderTitle(),m(n,"div",{block:this.className,elem:"ContentInner"},this.renderDescription(),this.renderLink())),this.renderMentionsLegales())}},{key:"render",value:function(){var e=this.props,t=e.mix,r=e.isLoading,i=e.offer;return i?m(n,"div",{block:this.className,mix:t,id:"our-offer-".concat(i.id)},m(n,g.a,{isLoading:r}),this.renderCardContent(),m(n,v.a,{allowedCustomerGroupIds:i.restricted_groups,isWithSigninLink:!0,isStrict:!0})):null}}]),r}(e.Extensible(u.PureComponent)),i.defaultProps={isLoading:!1,isExpanded:!1,mix:{}},i),"PeggysagePwa/Component/OurOfferCard/Component");t.a=b}).call(this,r(9).default,r(1))}}]); 2//# sourceMappingURL=oufoffers.2dd6f6af.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.