1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[162],{2263:function(e,t,i){i.r(t),i.d(t,{default:function(){return x}});i(51343),i(23e3),i(28835),i(16481);var l=i(41594),n=i.n(l),o=i(17191),a=i(96894),s=i(608),r=(i(76277),i(83320)),m=(i(48691),i(87291)),d=i(3495),u=i(93554),c=i.n(u),g=i(15077),v=function(e){var t,i,l,o,a,s,r,m=e.classes,u=e.testimonialData;if(void 0===u||0===Object.keys(u).length)return null;var v=null===u||void 0===u?void 0:u.heading,p=null===u||void 0===u?void 0:u.author_name,h=null===u||void 0===u?void 0:u.copy,_=null===u||void 0===u||null===(t=u.left_quote_image)||void 0===t?void 0:t.url,f=null===u||void 0===u||null===(i=u.right_quote_image)||void 0===i?void 0:i.url,y=(null===u||void 0===u?void 0:u.styling_block)||{},E=null===u||void 0===u||null===(l=u.testimonials_link)||void 0===l||null===(l=l.link)||void 0===l?void 0:l.href,k=null===u||void 0===u||null===(o=u.testimonials_link)||void 0===o||null===(o=o.link)||void 0===o?void 0:o.title,x={maxWidth:(null===u||void 0===u?void 0:u.max_width)||1400},b={fontSize:(null===y||void 0===y?void 0:y.font_size)||13,color:(null===y||void 0===y||null===(a=y.author_text_color)||void 0===a?void 0:a.color)||"#801517"},T={color:(null===y||void 0===y||null===(s=y.link_text_color)||void 0===s?void 0:s.color)||"#dd3337"},A={color:(null===y||void 0===y||null===(r=y.text_color)||void 0===r?void 0:r.color)||"#666666"};return n().createElement(d.A,{container:!0,"data-component":"homepageTestimonialUi"},n().createElement(d.A,{item:!0,xs:12,style:x,className:m.mainTestimonialConatiner},n().createElement("div",{style:A,className:m.testimonialSubContainer},n().createElement("div",{className:m.mainHeading},n().createElement(c(),{source:v}),n().createElement("div",{style:b,className:m.authorName},p)),n().createElement("div",{className:m.testimonialMessageStyle},n().createElement("div",{className:m.leftQuotes},n().createElement("img",{src:_,alt:v})),n().createElement("div",{className:m.testimonialmessage},h,n().createElement(g.A,{className:m.testimonialLink,style:T,href:E},n().createElement("span",null,k))),n().createElement("div",{className:m.leftQuotes},n().createElement("img",{src:f,alt:p}))))))};v.propTypes={classes:o.object.isRequired,testimonialData:(0,o.shape)({author_name:o.string,copy:o.string,heading:o.string,left_quote_image:(0,o.shape)({title:o.string,url:o.string}),right_quote_image:(0,o.shape)({title:o.string,url:o.string}),testimonials_link:(0,o.shape)({link:(0,o.shape)({href:o.string,title:o.string})})})},v.defaultProps={testimonialData:{}};var p=(0,m.A)(function(e){var t,i;return{mainTestimonialConatiner:{width:"100%",margin:"20px auto",borderBottom:"1px solid ".concat((null===(t=e.palette.cms)||void 0===t?void 0:t.testimonialColor)||"#f2f2f2"),borderTop:"1px solid ".concat((null===(i=e.palette.cms)||void 0===i?void 0:i.testimonialColor)||"#f2f2f2"),textAlign:"center",padding:"30px 0px"},mainHeading:{display:"flex",justifyContent:"center","& h1,h2,h3,h4,h5,h6,p":{margin:6,fontWeight:100}},testimonialMessageStyle:{display:"flex",justifyContent:"space-around"},testimonialLink:{display:"block"}}})(v),h=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return n().createElement(d.A,{item:!0,xs:2,"data-component":"imageLink"},n().createElement("div",{className:i.testimonialImage},n().createElement(g.A,{href:null===t||void 0===t||null===(e=t.title_link)||void 0===e?void 0:e.href},n().createElement("img",{src:null===t||void 0===t?void 0:t.testimonial_image.url,alt:null===t||void 0===t?void 0:t.heading}))))},_=function(e){var t,i,l,o=e.classes,a=e.productTestimonialData;if(void 0===a||0===Object.keys(a).length)return null;var r=(0,s.n)(),m=null===a||void 0===a?void 0:a.title,u=null===a||void 0===a||null===(t=a.left_quote_image)||void 0===t?void 0:t.url,v=null===a||void 0===a||null===(i=a.right_quote_image)||void 0===i?void 0:i.url,p=(null===a||void 0===a?void 0:a.testimonials)||[],_=null===a||void 0===a?void 0:a.styling_block,f={maxWidth:(null===a||void 0===a?void 0:a.max_width)||1400,margin:(null===a||void 0===a?void 0:a.margin)||""},y={color:(null===_||void 0===_||null===(l=_.link_text_color)||void 0===l?void 0:l.color)||"#801517",fontSize:(null===_||void 0===_?void 0:_.link_font_size)||16},E={fontSize:(null===_||void 0===_?void 0:_.text_font_size)||14};return n().createElement(d.A,{container:!0,"data-component":"categoryTestimonialsBlock"},n().createElement(d.A,{item:!0,xs:12,style:f,className:o.mainCategoryTestimonial},n().createElement(d.A,{container:!0,className:o.testimonialSubContainer},n().createElement(d.A,{item:!0,xs:12},n().createElement("div",{className:o.mainHeading},n().createElement(c(),{source:m}))),n().createElement(d.A,{item:!0,xs:12},n().createElement(d.A,{container:!0},null===p||void 0===p?void 0:p.map(function(e){var t,i;return n().createElement(d.A,{container:!0,key:r(e),className:o.mainTestimonialContainerData},n().createElement(d.A,{item:!0,xs:1},n().createElement("img",{src:u,alt:null===e||void 0===e?void 0:e.sub_heading})),n().createElement(d.A,{item:!0,xs:10},n().createElement(d.A,{container:!0},("Left"===(null===a||void 0===a?void 0:a.product_image_alignment)||null===(null===a||void 0===a?void 0:a.product_image_alignment))&&h(e,o),n().createElement(d.A,{item:!0,xs:10},n().createElement("div",{style:E,className:o.testimonialCenterBlock},n().createElement(g.A,{className:o.headingLinkStyle,style:y,href:null===e||void 0===e||null===(t=e.title_link)||void 0===t?void 0:t.href},null===e||void 0===e||null===(i=e.title_link)||void 0===i?void 0:i.title),n().createElement(c(),{source:null===e||void 0===e?void 0:e.author_name}),n().createElement("div",{className:o.subHeadingTestimonial},n().createElement(c(),{source:null===e||void 0===e?void 0:e.sub_heading})),n().createElement(c(),{source:null===e||void 0===e?void 0:e.copy}))),"Right"===(null===a||void 0===a?void 0:a.product_image_alignment)&&h(e,o))
1),n().createElement(d.A,{item:!0,xs:1},n().createElement("img",{src:v,alt:null===e||void 0===e?void 0:e.sub_heading})))}))))))};_.propTypes={classes:o.object.isRequired,productTestimonialData:(0,o.shape)({title:o.string,left_quote_image:(0,o.shape)({title:o.string,url:o.string}),right_quote_image:(0,o.shape)({title:o.string,url:o.string}),testimonials:(0,o.arrayOf)((0,o.shape)({author_name:o.string,copy:o.string,heading:o.string,testimonial_image:(0,o.shape)({title:o.string,url:o.string})}))})},_.defaultProps={productTestimonialData:{}};var f=(0,m.A)(function(e){var t,i,l,n,o,a,s;return{mainCategoryTestimonial:{width:"100%",margin:"20px auto",borderBottom:"1px solid ".concat((null===(t=e.palette.cms)||void 0===t?void 0:t.CategoryTestimonialsBorder)||"#dddddd"),borderTop:"1px solid ".concat((null===(i=e.palette.cms)||void 0===i?void 0:i.CategoryTestimonialsBorder)||"#dddddd"),textAlign:"center",padding:"20px 0px 10px 0px",color:(null===(l=e.palette.cms)||void 0===l?void 0:l.textCategoryColor)||"#999999","& h1,h2,h3,h4,h5,h6,p":{margin:2,fontWeight:100}},mainHeading:{textAlign:"center",color:(null===(n=e.palette.cms)||void 0===n?void 0:n.textCategoryColor)||"#666666",padding:"10px 0 15px 0"},testimonialCenterBlock:{textAlign:"left",paddingLeft:20},testimonialImage:{textAlign:"right"},headingLinkStyle:{textDecoration:"underline"},subHeadingTestimonial:{color:(null===(o=e.palette.cms)||void 0===o?void 0:o.textCategoryColor)||"#666666"},mainTestimonialContainerData:{borderBottom:"1px solid ".concat((null===(a=e.palette.cms)||void 0===a?void 0:a.testimonialsBorder)||"#f2f2f2"),padding:"20px 0","&:last-child":{borderBottom:"none"},"&:first-child":{borderTop:"1px solid ".concat((null===(s=e.palette.cms)||void 0===s?void 0:s.testimonialsBorder)||"#f2f2f2")}}}})(_),y=function(e){var t=e.block,i=e.isCustomerTestimonial,l=e.isProductTestimonial;if(!t)return r.A.logWarning({appName:"mbp-pwa-ui",message:"No block types have been passed into TestimonialBlock.js"}),null;var o=Object.keys(t)[0],a=t[o];switch(o){case"homepage_testimonials":return i&&n().createElement(p,{testimonialData:a});case"product_testimonial":return l&&n().createElement(f,{productTestimonialData:a});default:return r.A.logWarning({appName:"mbp-pwa-ui",message:'Unknown HomePage block type "'.concat(o,'" in TestimonialBlock.js')}),null}};y.propTypes={block:(0,o.shape)({homepage_testimonials:(0,o.shape)({author_name:o.string,copy:o.string,heading:o.string,left_quote_image:(0,o.shape)({title:o.string,url:o.string}),right_quote_image:(0,o.shape)({title:o.string,url:o.string}),testimonials_link:(0,o.shape)({link:(0,o.shape)({href:o.string,title:o.string})})}),product_testimonial:(0,o.shape)({title:o.string,left_quote_image:(0,o.shape)({title:o.string,url:o.string}),right_quote_image:(0,o.shape)({title:o.string,url:o.string}),testimonials:(0,o.arrayOf)((0,o.shape)({author_name:o.string,copy:o.string,heading:o.string,testimonial_image:(0,o.shape)({title:o.string,url:o.string})}))})}),isCustomerTestimonial:o.bool,isProductTestimonial:o.bool},y.defaultProps={block:{},isCustomerTestimonial:!0,isProductTestimonial:!1};var E=y,k=function(e){var t,i=e.block,l=e.isCustomerTestimonial,o=e.isProductTestimonial,a=(null===i||void 0===i||null===(t=i.reference)||void 0===t?void 0:t[0].modular_blocks)||[],r=(0,s.n)();return a?null===a||void 0===a?void 0:a.map(function(e){return n().createElement(E,{block:e,key:r(e),isCustomerTestimonial:l,isProductTestimonial:o})}):null};k.propTypes={block:(0,o.shape)({reference:(0,o.arrayOf)((0,o.shape)({modular_blocks:(0,o.arrayOf)((0,o.shape)({homepage_testimonials:(0,o.shape)({author_name:o.string,copy:o.string,heading:o.string,left_quote_image:(0,o.shape)({title:o.string,url:o.string}),right_quote_image:(0,o.shape)({title:o.string,url:o.string}),testimonials_link:(0,o.shape)({link:(0,o.shape)({href:o.string,title:o.string})})}),product_testimonial:(0,o.shape)({title:o.string,left_quote_image:(0,o.shape)({title:o.string,url:o.string}),right_quote_image:(0,o.shape)({title:o.string,url:o.string}),testimonials:(0,o.arrayOf)((0,o.shape)({author_name:o.string,copy:o.string,heading:o.string,testimonial_image:(0,o.shape)({title:o.string,url:o.string})}))})}))}))}),isCustomerTestimonial:o.bool.isRequired,isProductTestimonial:o.bool.isRequired},k.defaultProps={block:{}};var x=(0,a.withRouter)(k)}}]); 2//# sourceMappingURL=TestimonialsPageBody.26a7d5a8.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.