1(this.webpackJsonpscandipwa=this.webpackJsonpscandipwa||[]).push([[22],{1026:function(e,t,n){"use strict";n.r(t);var o=n(1636);n.d(t,"default",(function(){return o.a}))},1147:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"LinkedProductsDispatcher",(function(){return h})),n.d(t,"PostsDetailsDispatcher",(function(){return f}));var o=n(3),a=n(6),r=n(19),i=n(17),s=n(4),l=n(5),u=n(174),c=n(29),m=n(24),d=n(1330),p=n(208),h=Promise.all([n.e(42),n.e(7),n.e(16)]).then(n.bind(null,328)),f=e.middleware(function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"__construct",value:function(){Object(r.a)(Object(i.a)(n.prototype),"__construct",this).call(this,"BlogPostsDetails")}},{key:"onSuccess",value:function(e,t){var n=e.post;if(0!==Object.keys(n).length){var o=n.related_products.map(this.buildProductLink);o.length&&h.then((function(e){e.default.handleData(t,o)}))}t(Object(p.f)(n))}},{key:"onError",value:function(e,t){var n=e.message;t(Object(c.d)("error","Error fetching post details!",n)),t(Object(u.c)(!0))}},{key:"prepareRequest",value:function(e){return d.a.getQuery(e)}},{key:"buildProductLink",value:function(e,t){return{link_type:"related",linked_product_sku:e,position:t}}}]),n}(e.Extensible(m.a)),"Blog/Store/PostsDetails/Dispatcher/PostsDetailsDispatcher");t.default=new f}.call(this,n(7).default)},1330:function(e,t,n){"use strict";(function(e){var o=n(10),a=n(3),r=n(6),i=n(4),s=n(5),l=n(9),u=e.middleware(function(e){Object(i.a)(n,e);var t=Object(s.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"getQuery",value:function(e){var t=this.postField(e),n=e.id,o=void 0===n?"hello-world":n;return new l.a("blogPost").addArgument("id","String",o).addFieldList(t).setAlias("post")}},{key:"postField",value:function(e){var t=e.getBasicDetails,n=void 0===t||t,a=e.getDescription,r=e.getMedia,i=e.getRelated,s=[],l=this.authorField(),u=this.relatedPostsField();return n&&s.push.apply(s,["post_id","identifier","title","formatted_publish_time"].concat(Object(o.a)(this.metaFields()))),a&&s.push("short_content",l,"content"),r&&s.push("og_image","first_image","featured_image","featured_mobile_image","media_gallery"),i&&s.push(u,"related_products"),s}},{key:"authorField",value:function(){return new l.a("author").addField("name")}},{key:"relatedPostsField",value:function(){return new l.a("related_posts").addFieldList(["post_id","identifier","title","formatted_publish_time","first_image"])}},{key:"metaFields",value:function(){return["meta_title","meta_description","meta_keywords"]}}]),n}(e.Extensible()),"Blog/Query/BlogPost/Query/BlogPostQuery");t.a=new u}).call(this,n(7).default)},1331:function(e,t,n){"use strict";(function(e,o,a){var r,i,s=n(13),l=n(1),u=n(3),c=n(6),m=n(8),d=n(4),p=n(5),h=n(9),f=n(24),g=n(0),v=n(12),b=n(59),C=n(51),P=n(29),k=n(37),y=n(2238),B=n(1637),O=n(2239),_=n(1333),j=e.middleware((function(e){return{numberOfComments:e.ConfigReducer.mfblog_post_view_comments_number_of_comments||_.d}}),"Blog/Component/BlogCommentForm/Container/mapStateToProps"),D=e.middleware((function(e){return{updateComments:function(t,n){return e(Object(B.a)(t,n))},showNotification:function(t,n){return e(Object(P.d)(t,n))},goToPreviousNavigationState:function(){return e(Object(b.d)(C.b))},hideActiveOverlay:function(){return e(Object(k.d)())}}}),"Blog/Component/BlogCommentForm/Container/mapDispatchToProps"),w=n(11).checkBEMProps,S=e.middleware((i=r=function(t){Object(d.a)(r,t);var n=Object(p.a)(r);function r(){var e;Object(u.a)(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).state={commentData:{},isLoading:!1},e.containerFunctions={onSubmit:e.submitComment.bind(Object(m.a)(e)),onBlogCommentSubmitButtonClick:e.onBlogCommentSubmitButtonClick.bind(Object(m.a)(e)),handleAuthorNameChange:e.handleFieldChange.bind(Object(m.a)(e),_.b),handleAuthorEmailChange:e.handleFieldChange.bind(Object(m.a)(e),_.a),handleCommentChange:e.handleFieldChange.bind(Object(m.a)(e),_.c)},e.containerProps=function(){var t=e.state;return{commentData:t.commentData,isLoading:t.isLoading}},e}return Object(c.a)(r,[{key:"handleFieldChange",value:function(e,t){this.setState((function(n){var o=n.commentData;return{commentData:Object(l.a)(Object(l.a)({},o),{},Object(s.a)({},e,t))}}))}}
1,{key:"setLoader",value:function(){this.setState({isLoading:!0})}},{key:"removeLoader",value:function(){this.setState({isLoading:!1})}},{key:"onBlogCommentSubmitButtonClick",value:function(e){e.currentTarget.blur()}},{key:"submitComment",value:function(t){var n=this,a=this.props,r=a.postId,i=a.commentId,s=a.numberOfComments,l=a.showNotification,u=a.goToPreviousNavigationState,c=a.hideActiveOverlay,m=t.author_nickname,d=t.author_email,p=t.text;this.setLoader(),Object(f.d)(Object(h.c)(y.a.getMutation({pageSize:s,commentData:{post_id:r,parent_id:i,author_nickname:m,author_email:d,text:p}}))).then(e.middleware((function(e){var t=n.props,a=t.updateComments,r=t.onPostFinish,i=e.addCommentToPost;a(i.comments,i.total_pages),n.setState({commentData:{author_nickname:"",author_email:"",text:""},isLoading:!1}),l("success",o("Your comment submission was successful")),r(),c(),u()}),"Blog/Component/BlogCommentForm/Container/executePost/then")).catch(e.middleware((function(e){l("error",e[0].message),n.removeLoader()}),"Blog/Component/BlogCommentForm/Container/executePost/then/catch"))}},{key:"render",value:function(){return w(a,O.a,Object.assign({},this.containerProps(),this.containerFunctions))}}]),r}(e.Extensible(g.PureComponent)),r.defaultProps={commentId:0,onPostFinish:function(){return null}},i),"Blog/Component/BlogCommentForm/Container/BlogCommentFormContainer");t.a=Object(v.b)(j,D)(S)}).call(this,n(7).default,n(16).default,n(0))},1332:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(3),a=n(6),r=n(4),i=n(5),s=n(9),l=e.middleware(function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"getQuery",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.pageSize,o=e.currentPage,a=void 0===o?1:o,r=e.filter;return new s.a("blogComments").addArgument("pageSize","Int!",n).addArgument("currentPage","Int!",a).addArgument("filter","BlogCommentsFilterInput!",r).addField(l.getCommentsItemField(t)).addFieldList(["total_count","total_pages"])}}],[{key:"getCommentsItemField",value:function(e){return new s.a("items").addFieldList(l.getCommentsItemFields(e))}},{key:"getCommentsItemFields",value:function(e){return e<=0?["author_email","author_nickname","comment_id","formatted_creation_time","text"]:["author_email","author_nickname","comment_id","formatted_creation_time","text",new s.a("replies").addFieldList(l.getCommentsItemFields(e-1))]}}]),n}(e.Extensible()),"Blog/Query/BlogComments/Query/BlogCommentsQuery");t.b=new l}).call(this,n(7).default)},1333:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));var o=5,a="author_nickname",r="author_email",i="text"},1334:function(e,t,n){"use strict";(function(e){var o=n(12),a=n(59),r=n(51),i=n(53),s=n(2244),l=n(1640),u=e.middleware((function(){return{}}),"Blog/Component/BlogComment/Container/mapStateToProps"),c=e.middleware((function(e){return{showPopup:function(t){return e(Object(i.b)(l.a,t))},changeHeaderState:function(t){return e(Object(a.c)(r.b,t))}}}),"Blog/Component/BlogComment/Container/mapDispatchToProps");t.a=Object(o.b)(u,c)(s.a)}).call(this,n(7).default)},1636:function(e,t,n){"use strict";(function(e,o,a){var r,i,s=n(1),l=n(3),u=n(6),c=n(19),m=n(17),d=n(4),p=n(5),h=n(0),f=n(12),g=n(144),v=n(59),b=n(51),C=(n(48),n(40),n(27)),P=n(1637),k=(n(1638),n(2236)),y=n(516),B=Promise.all([n.e(42),n.e(7),n.e(16)]).then(n.bind(null,995)),O=Promise.all([n.e(42),n.e(7),n.e(16)]).then(n.bind(null,328)),_=Promise.all([n.e(42),n.e(7),n.e(16)]).then(n.bind(null,1147)),j=Promise.all([n.e(42),n.e(7),n.e(16)]).then(n.bind(null,1148)),D=e.middleware((function(e){return{post:e.PostsDetailsReducer.post,device:e.ConfigReducer.device}}),"Blog/Route/PostsDetails/Container/mapStateToProps"),w=e.middleware((function(t){return{updateBreadcrumbs:function(e){return B.then((function(n){return n.default.update(e,t)}))},requestPosts:function(n){O.then((function(e){return e.default.clearLinkedProducts(t),_})).then(e.middleware((function(e){return e.default.handleData(t,n)}),"Blog/Route/PostsDetails/Container/then/then"))},requestCategories:function(e){return j.then((function(n){return n.default.handleData(t,e)}))},updateMeta:function(e){return t(Object(g.b)(e))},setHeaderState:function(e){return t(Object(v.c)(b.b,e))},clearPostData:function(){return t(Object(P.b)({}))}}}),"Blog/Route/PostsDetails/Container/mapDispatchToProps"),S=n(11).checkBEMProps,R=e.middleware((i=r=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){var e;Object(l.a)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))).onBackButtonClick=function(){C.a.goBack()},e}
1return Object(u.a)(n,[{key:"componentDidMount",value:function(){this.updateBreadcrumbs(),this.requestPosts(),this.getPost(),this.setHeaderState(),this.storePathname(),this.requestCategories(),window.scrollTo(0,0)}},{key:"componentDidUpdate",value:function(e){var t=this.props.post.post_id,n=e.post.post_id;this.updateBreadcrumbs(),this.updatePage(),this.updateMeta(),t!==n&&this.getAreDetailsLoaded()}},{key:"componentWillUnmount",value:function(){(0,this.props.clearPostData)()}},{key:"__construct",value:function(e){Object(c.a)(Object(m.a)(n.prototype),"__construct",this).call(this,e),this.options={postOptions:{getDescription:!0,getMedia:!0,getRelated:!0}},this.state={areDetailsLoaded:!1}}},{key:"containerProps",value:function(){return{post:this.props.post,areDetailsLoaded:this.state.areDetailsLoaded,onBackButtonClick:this.onBackButtonClick}}},{key:"getAreDetailsLoaded",value:function(){var e=this.props,t=e.post,n=e.post.post_id;this.setState({areDetailsLoaded:!(!t||!n)})}},{key:"setHeaderState",value:function(){var e=this.props,t=e.setHeaderState,n=e.history;t({name:y.a,title:"Blog",onBackClick:function(){return n.goBack()}})}},{key:"updateMeta",value:function(){var e=this.props,t=e.post,n=t.title,o=t.meta_title,a=t.meta_description,r=t.meta_keyword,i=t.first_image,s=e.updateMeta;s({title:n,meta_title:o,meta_description:a,meta_keyword:r,canonical_url:this.getCanonicalUrl()||"",imageSrc:i,og_type:"article"})}},{key:"getUrlParam",value:function(){var e=this.props.match,t=(e=void 0===e?{}:e).params;return(t=void 0===t?{}:t).handle}},{key:"getPost",value:function(){return this.props.post}},{key:"updateBreadcrumbs",value:function(){var e=this.props,t=e.updateBreadcrumbs,n=e.post.title;n?t([{name:n},{url:"/blog",name:o("Blog")}]):t([{url:"/blog",name:o("Blog")}])}},{key:"storePathname",value:function(){this.setState({oldHandle:this.getUrlParam()})}},{key:"getCanonicalUrl",value:function(){var e=this.props.post.identifier;return e?"".concat(window.location.origin,"/blog/post/").concat(e):null}},{key:"updatePage",value:function(){this.state.oldHandle!==this.getUrlParam()&&(this.requestPosts(),this.getPost(),this.setHeaderState(),this.storePathname())}},{key:"requestPosts",value:function(){var e=this.props,t=e.requestPosts,n=e.identifier,o=void 0===n?"":n,a=this.options.postOptions;t(Object(s.a)(Object(s.a)({},a),{},{id:o}))}},{key:"requestCategories",value:function(){var e=this.props.requestCategories;e()}},{key:"render",value:function(){var e=this.props.device;return S(a,k.a,Object.assign({},this.containerProps(),{device:e}))}}]),n}(e.Extensible(h.PureComponent)),r.defaultProps={identifier:""},i),"Blog/Route/PostsDetails/Container/PostsDetailsContainer");t.a=Object(f.b)(D,w)(R)}).call(this,n(7).default,n(16).default,n(0))},1637:function(e,t,n){"use strict";n(364),n(1147);var o=n(208);n.d(t,"a",(function(){return o.e})),n.d(t,"b",(function(){return o.f}))},1638:function(e,t,n){"use strict";var o=n(2),a=n.n(o);a.a.shape({post_id:a.a.number.isRequired,identifier:a.a.string.isRequired,title:a.a.string.isRequired,formatted_publish_time:a.a.string.isRequired,content:a.a.string.isRequired,og_image:a.a.string.isRequired,first_image:a.a.string.isRequired,media_gallery:a.a.string,author:a.a.shape({name:a.a.string.isRequired})})},1639:function(e,t,n){"use strict";(function(e,o){var a,r,i=n(3),s=n(6),l=n(8),u=n(4),c=n(5),m=n(0),d=n(12),p=n(37),h=n(1333),f=n(2242),g=Promise.all([n.e(42),n.e(7),n.e(16)]).then(n.bind(null,2314)),v=e.middleware((function(e){return{comments:e.PostsDetailsReducer.comments,commentsTotalPage:e.PostsDetailsReducer.commentsTotalPage,numberOfComments:e.ConfigReducer.mfblog_post_view_comments_number_of_comments||h.d}}),"Blog/Component/BlogCommentsList/Container/mapStateToProps"),b=e.middleware((function(e){return{clearCommentsList:function(){return g.then((function(t){return t.default.clearComments(e)}))},loadComments:function(t){return g.then((function(n){return n.default.handleData(e,t)}))},hideActiveOverlay:function(){return e(Object(p.d)())}}}),"Blog/Component/BlogCommentsList/Container/mapDispatchToProps"),C=n(11).checkBEMProps,P=e.middleware((r=a=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(i.a)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))).state={currentPage:0},e.containerFunctions={loadMoreComments:e.loadMoreComments.bind(Object(l.a)(e)),loadAllComments:e.loadAllComments.bind(Object(l.a)(e)),setCurrentPage:e.setCurrentPage.bind(Object(l.a)(e))},e.containerProps=function(){var t=e.props,n=t.postId,o=t.comments,a=t.commentsTotalPage,r=t.postTitle,i=t.hideActiveOverlay;return{postId:n,comments:o,currentPage:e.state.currentPage,commentsTotalPage:a,postTitle:r,hideActiveOverlay:i}},e}
1return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.loadComments()}},{key:"componentWillUnmount",value:function(){(0,this.props.clearCommentsList)()}},{key:"setCurrentPage",value:function(){this.setState({currentPage:1})}},{key:"loadComments",value:function(){var e=this.props,t=e.postId,n=e.numberOfComments,o=e.loadComments;(0,e.clearCommentsList)(),o({pageSize:n,currentPage:1,filter:{post_id:{eq:t}}}),this.setState({currentPage:1})}},{key:"loadMoreComments",value:function(e){var t=this.state.currentPage,n=this.props,o=n.postId,a=n.numberOfComments,r=n.loadComments;e.currentTarget.blur(),r({pageSize:a,currentPage:t+1,filter:{post_id:{eq:o}}}),this.setState({currentPage:t+1})}},{key:"loadAllComments",value:function(){var e=this.props,t=e.loadComments,n=e.postId,o=e.commentsTotalPage;t({pageSize:o*e.numberOfComments,filter:{post_id:{eq:n}}}),this.setState({currentPage:o})}},{key:"render",value:function(){return C(o,f.a,Object.assign({},this.containerProps(),this.containerFunctions))}}]),n}(e.Extensible(m.PureComponent)),a.defaultProps={hideActiveOverlay:!1},r),"Blog/Component/BlogCommentsList/Container/BlogCommentsListContainer");t.a=Object(d.b)(v,b)(P)}).call(this,n(7).default,n(0))},1640:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var o="BlogCommentReplyPopup"},1641:function(e,t,n){"use strict";(function(e){var o=n(12),a=n(2247),r=e.middleware((function(e){return{activeOverlay:e.OverlayReducer.activeOverlay,payload:e.PopupReducer.popupPayload}}),"Blog/Component/BlogCommentReplyPopup/Container/mapStateToProps"),i=e.middleware((function(){return{}}),"Blog/Component/BlogCommentReplyPopup/Container/mapDispatchToProps");t.a=Object(o.b)(r,i)(a.a)}).call(this,n(7).default)},1642:function(e,t,n){"use strict";(function(e){var o=n(12),a=n(2250),r=e.middleware((function(e){return{relatedProductsNumber:e.ConfigReducer.mfblog_post_view_related_products_number_of_products}}),"Blog/Component/BlogRelatedProducts/Container/mapStateToProps"),i=e.middleware((function(e){return{}}),"Blog/Component/BlogRelatedProducts/Container/mapDispatchToProps");t.a=Object(o.b)(r,i)(a.a)}).call(this,n(7).default)},2236:function(e,t,n){"use strict";(function(e,o){var a=n(3),r=n(6),i=n(4),s=n(5),l=n(0),u=n.n(l),c=n(77),m=n(67),d=n(49),p=n(56),h=(n(40),n(2237)),f=n(2241),g=n(2249),v=(n(1638),n(2252),n(11).checkBEMProps),b=e.middleware(function(e){Object(i.a)(n,e);var t=Object(s.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"renderTitle",value:function(){var e=this.props.post.title;return v(u.a,"h1",{mix:{block:"PostsDetails",elem:"Title"}},v(u.a,p.a,{length:"medium",content:e}))}},{key:"renderImage",value:function(){var e=this.props,t=e.device.isMobile,n=e.post,a=n.featured_image,r=n.featured_mobile_image,i=n.title,s=t&&r?r:a;return s?v(u.a,u.a.Fragment,null,v(u.a,"div",{mix:{block:"PostsDetails",elem:"Image"}},v(u.a,d.a,{block:"PostsListing",elem:"FeaturedImage",src:s,alt:"".concat(i," ").concat(o("featured image")),ratio:"custom"}))):null}},{key:"renderPublishDate",value:function(){var e=this.props.post.formatted_publish_time;return e?v(u.a,"div",{mix:{block:"PostsDetails",elem:"Date"}},v(u.a,p.a,{mix:{block:"BlogRecentPosts",elem:"DatePlaceholder"},content:e})):null}},{key:"renderAuthorName",value:function(){var e=this.props.post.author;return e?v(u.a,"div",{mix:{block:"PostsDetails",elem:"Author"}},e.name):null}},{key:"renderContent",value:function(){var e=this.props.post.content;return e?v(u.a,"div",{id:"html-body",mix:{block:"PostsDetails",elem:"Content"}},v(u.a,m.a,{content:e})):v(u.a,p.a,{mix:{block:"PostsDetails",elem:"ContentPlaceholder"},length:"custom"})}},{key:"renderCommentForm",value:function(){var e=this.props.post.post_id;return v(u.a,h.a,{postId:e})}},{key:"renderCommentsList",value:function(){var e=this.props.post,t=e.post_id,n=e.title;return t?v(u.a,f.a,{postId:t,postTitle:n}):null}},{key:"renderHeaderPart",value:function(){var e=this.props.onBackButtonClick;return v(u.a,"div",{block:"PostsDetails",elem:"Header"},v(u.a,"div",{block:"PostsDetails",elem:"Info"},v(u.a,"button",{onClick:e,block:"PostsDetails",elem:"ToBlog"}),this.renderTitle()))}},{key:"renderPostDescription",value:function(){return v(u.a,"div",{block:"PostsDetails",elem:"Description"},this.renderImage(),this.renderPublishDate(),this.renderContent())}},{key:"renderMainSection",value:function(){return v(u.a,"div",{block:"PostsDetails",elem:"Main"},this.renderHeaderPart(),this.renderPublishDate(),v(u.a,"div",{block:"PostsDetails",elem:"DivideLine"}),this.renderPostDescription())}},{key:"renderBlogRelatedProducts",value:function(){var e=this.props;e.post.related_products,e.areDetailsLoaded;return v(u.a,g.a,null)}},{key:"render",value:function(){return v(u.a,"main",{block:"PostsDetails"},v(u.a,c.a,{wrapperMix:{block:"PostsDetails",elem:"Wrapper"},label:"Post"},this.renderMainSection()),this.renderBlogRelatedProducts())}}]),n}(e.Extensible(l.PureComponent)),"Blog/Route/PostsDetails/Component/PostsDetailsComponent");t.a=b}).call(this,n(7).default,n(16).default)},2237:function(e,t,n){"use strict";var o=n(1331);n.d(t,"a",(function(){return o.a}))},2238:function(e,t,n){"use strict";(function(e){var o=n(3),a=n(6),r=n(4),i=n(5),s=n(9),l=n(1332),u=e.middleware(function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"getMutation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.pageSize,o=e.commentData;return new s.a("addCommentToPost").addArgument("pageSize","Int!",n).addArgument("input","addCommentToPostInput!",o).addField(u.getCommentsField(t)).addFieldList(["total_count","total_pages"])}}],[{key:"getCommentsField",value:function(e){return new s.a("comments").addFieldList(l.a.getCommentsItemFields(e))}}]),n}(e.Extensible()),"Blog/Mutation/BlogComment/Mutation/BlogCommentMutation");t.a=new u}).call(this,n(7).default)},2239:function(e,t,n){"use strict";(function(e,o,a){var r,i,s=n(3),l=n(6),u=n(4),c=n(5),m=n(44),d=n(118),p=n(0),h=n(43),f=n(1333),g=(n(2240),n(11).checkBEMProps),v=e.middleware((i=r=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return(e=t.call.apply(t,[this].concat(i))).renderSubmitButton=function(){var t=e.props.onBlogCommentSubmitButtonClick;return g(o,"div",{block:"BlogCommentForm",elem:"ButtonWrapper"},g(o,"button",{block:"BlogCommentForm",elem:"Button",onClick:t,mix:{block:"Button",mods:{isHollow:!0}}},a("Submit review")))},e}return Object(l.a)(n,[{key:"render",value:function(){var e=this.props,t=e.onSubmit,n=e.commentData,r=n.author_nickname,i=n.author_email,s=n.text,l=e.handleAuthorNameChange,u=e.handleAuthorEmailChange,c=e.handleCommentChange,p=e.isLoading;return g(o,d.a,{mix:{block:"BlogCommentForm"},key:"comment-form",onSubmitSuccess:t},g(o,h.a,{isLoading:p}),g(o,"div",{block:"BlogCommentForm",elem:"PersonalInfo"},g(o,m.a,{type:"text",id:f.b,name:f.b,label:a("Name"),value:r,validation:["notEmpty"],onChange:l}),g(o,m.a,{type:"text",id:f.a,name:f.a,label:a("Email"),value:i,validation:["notEmpty","email"],onChange:u})),g(o,m.a,{type:"textarea",id:f.c,name:f.c,rows:"5",label:a("Message text"),value:s,validation:["notEmpty"],renderInlineButton:this.renderSubmitButton,onChange:c}))}}]),n}
1(e.Extensible(p.PureComponent)),r.defaultProps={commentData:{author_nickname:"",author_email:"",text:""}},i),"Blog/Component/BlogCommentForm/Component/BlogCommentFormComponent");t.a=v}).call(this,n(7).default,n(0),n(16).default)},2240:function(e,t,n){},2241:function(e,t,n){"use strict";var o=n(1639);n.d(t,"a",(function(){return o.a}))},2242:function(e,t,n){"use strict";(function(e,o,a){var r=n(10),i=n(3),s=n(6),l=n(4),u=n(5),c=n(0),m=n(2243),d=n(1640),p=n(2246),h=(n(2248),n(11).checkBEMProps),f=e.middleware(function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){var e;Object(i.a)(this,n);for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).renderComment=function(t){var n=e.props,a=n.postId,r=n.setCurrentPage,i=t.author_nickname,s=t.comment_id,l=t.formatted_creation_time,u=t.text,c=t.replies,d=void 0===c?[]:c;return h(o,m.a,{key:s,id:s,postId:a,author:i,text:u,date:l,replies:d,setCurrentPage:r})},e}return Object(s.a)(n,[{key:"getThoughtsCount",value:function(e){return e.reduce((function(e,t){var n=t.replies;return[].concat(Object(r.a)(e),[t],Object(r.a)(n))}),[]).length}},{key:"renderPopup",value:function(){var e=this.props.hideActiveOverlay;return h(o,p.a,{id:d.a,clickOutside:!1,hideActiveOverlay:e})}},{key:"render",value:function(){var e=this.props,t=e.comments,n=void 0===t?[]:t,r=e.currentPage,i=e.commentsTotalPage,s=e.loadMoreComments,l=e.postTitle,u=e.loadAllComments,c=this.getThoughtsCount(n);return h(o,"div",{block:"BlogCommentsList"},h(o,"div",{block:"BlogCommentsList",elem:"Title"},h(o,"h4",null,"".concat(c,' thoughts to "').concat(l,'"'))),n.map(this.renderComment),r<i&&h(o,"div",{block:"BlogCommentsList",elem:"ButtonWrapper"},h(o,"button",{block:"Button",mix:{block:"Button",mods:{isGrayBackground:!0,isSmall:!0,isRightArrow:!0}},onClick:s},a("Load more")),h(o,"button",{block:"BlogCommentsList",elem:"ShowAllButton",mix:{block:"Button",mods:{isSmall:!0,isHollow:!0}},onClick:u},a("Show all"))),this.renderPopup())}}]),n}(e.Extensible(c.PureComponent)),"Blog/Component/BlogCommentsList/Component/BlogCommentsListComponent");t.a=f}).call(this,n(7).default,n(0),n(16).default)},2243:function(e,t,n){"use strict";var o=n(1334);n.d(t,"a",(function(){return o.a}))},2244:function(e,t,n){"use strict";(function(e,o,a){n.d(t,"a",(function(){return f}));var r,i,s=n(3),l=n(6),u=n(4),c=n(5),m=n(0),d=n(67),p=n(1334),h=(n(2245),n(11).checkBEMProps),f=e.middleware((i=r=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return(e=t.call.apply(t,[this].concat(i))).state={isReply:!1},e.closePopup=function(){var t=e.props.setCurrentPage;e.setState({isReply:!1}),t()},e.openPopup=function(){var t=e.props;(0,t.showPopup)({postId:t.postId,commentId:t.id,title:o("Leave a message")})},e.renderReply=function(t){var n=e.props.postId,o=t.author_nickname,r=t.comment_id,i=t.formatted_creation_time,s=t.text,l=t.replies;return h(a,p.a,{key:r,id:r,postId:n,author:o,text:s,date:i,replies:l,canReply:!1})},e}return Object(l.a)(n,[{key:"renderReplyButton",value:function(){return this.props.canReply?h(a,"button",{block:"BlogComment",elem:"ReplyButton",onClick:this.openPopup,mix:{block:"Button",mods:{isHollow:!0,isSmall:!0,isInline:!0}}},o("reply")):null}},{key:"render",value:function(){var e=this.props,t=e.author,n=e.date,r=e.text,i=e.replies;return h(a,"div",{block:"BlogComment"},h(a,"div",{block:"BlogComment",elem:"Wrapper"},h(a,"p",{block:"BlogComment",elem:"Author"},t||o("Guest")),h(a,"p",{block:"BlogComment",elem:"Date"},n),h(a,"div",{block:"BlogComment",elem:"Content"},h(a,d.a,{content:r})),this.renderReplyButton()),h(a,"div",{block:"BlogComment",elem:"Replies"},i.map(this.renderReply)))}}]),n}(e.Extensible(m.PureComponent)),r.defaultProps={canReply:!0,replies:[]},i),"Blog/Component/BlogComment/Component/BlogCommentComponent")}).call(this,n(7).default,n(16).default,n(0))},2245:function(e,t,n){},2246:function(e,t,n){"use strict";var o=n(1641);n.d(t,"a",(function(){return o.a}))},2247:function(e,t,n){"use strict";(function(e,o){var a,r,i=n(3),s=n(6),l=n(4),u=n(5),c=n(0),m=n(70),d=n(1331),p=n(11).checkBEMProps,h=e.middleware((r=a=function(e){Object(l.a)(n,e);var t=Object(u.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"renderContent",value:function(){var e=this.props,t=e.payload,n=void 0===t?{}:t,a=e.activeOverlay,r=void 0===a?"":a,i=e.hideActiveOverlay,s=n[r]||{},l=s.postId,u=s.commentId;return l&&u?p(o,d.a,{postId:l,commentId:u,onPostFinish:i}
1):null}},{key:"render",value:function(){var e=this.props.id;return p(o,m.a,{id:e,mix:{block:"BlogCommentReplyPopup"}},this.renderContent())}}]),n}(e.Extensible(c.PureComponent)),a.defaultProps={payload:{},activeOverlay:"",hideActiveOverlay:!1},r),"Blog/Component/BlogCommentReplyPopup/Component/BlogCommentReplyPopupComponent");t.a=h}).call(this,n(7).default,n(0))},2248:function(e,t,n){},2249:function(e,t,n){"use strict";var o=n(1642);n.d(t,"a",(function(){return o.a}))},2250:function(e,t,n){"use strict";(function(e,o){var a=n(3),r=n(6),i=n(4),s=n(5),l=n(0),u=n.n(l),c=n(333),m=n(120),d=(n(2251),n(11).checkBEMProps),p=e.middleware(function(e){Object(i.a)(n,e);var t=Object(s.a)(n);function n(){var e;Object(a.a)(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))).state={itemsLoaded:!1},e.handleItemStatus=function(t){e.setState({itemsLoaded:t.length>0})},e}return Object(r.a)(n,[{key:"renderTitle",value:function(){return this.state.itemsLoaded?d(u.a,"button",{block:"BlogRelatedProducts",elem:"Button"},d(u.a,"h3",{block:"BlogRelatedProducts",elem:"Title"},o("Related Products"))):null}},{key:"render",value:function(){var e=this.props.relatedProductsNumber;return d(u.a,"div",{block:"BlogRelatedProducts",elem:"Wrapper"},this.renderTitle(),d(u.a,c.a,{linkType:m.b,isPdpOrCheckout:"true",handleItemStatus:this.handleItemStatus,numberOfProductsToDisplay:e}))}}]),n}(e.Extensible(l.PureComponent)),"Blog/Component/BlogRelatedProducts/Component/BlogRelatedProductsComponent");t.a=p}).call(this,n(7).default,n(16).default)},2251:function(e,t,n){},2252:function(e,t,n){}}]);
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.