1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[11],{"7TdG":function(e,r,t){},J8E0:function(e,r,t){"use strict";t.r(r);var n=t("nKUr"),o=t("H+61"),s=t("UlJF"),i=t("+Css"),a=t("7LId"),l=t("VIvw"),c=t("iHvq"),d=t("cpVT"),p=t("q1tI"),u=t.n(p),g=t("Vvt1"),h=t.n(g),m=t("20a2"),b=t.n(m),j=t("/MKj"),f=t("LoXA"),v=t.n(f),y=t("p46w"),O=t.n(y),w=t("0wdU"),x=t("JhT1"),C=t("QnuM"),S=(t("7TdG"),t("wyBh")),k=t("IF/j");t("cr+I"),t("ktuI");function H(e){var r=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=Object(c.a)(e);if(r){var o=Object(c.a)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return Object(l.a)(this,t)}}var N=h()((function(){return Promise.all([t.e(28),t.e(395)]).then(t.bind(null,"sQzZ"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["sQzZ"]},modules:["../components/header/header.js -> react-emoji-component"]}}),L=h()((function(){return Promise.all([t.e(149),t.e(367)]).then(t.bind(null,"0NyG"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["0NyG"]},modules:["../components/header/header.js -> components/header/headerLeft"]}}),E=(h()((function(){return t.e(393).then(t.bind(null,"2h4b"))}),{ssr:!0,loadableGenerated:{webpack:function(){return["2h4b"]},modules:["../components/header/header.js -> components/header/headerRightPersonalise"]}}),h()((function(){return t.e(397).then(t.bind(null,"WoJJ"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["WoJJ"]},modules:["../components/header/header.js -> components/header/headerLogo"]}})),z=h()((function(){return Promise.all([t.e(12),t.e(14),t.e(16),t.e(19),t.e(9),t.e(348)]).then(t.bind(null,"9D82"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["9D82"]},modules:["../components/header/header.js -> components/header/userProfile"]}}),P=h()((function(){return Promise.all([t.e(46),t.e(407)]).then(t.bind(null,"Fvl8"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["Fvl8"]},modules:["../components/header/header.js -> components/header/headerCart"]}}),V=h()((function(){return t.e(408).then(t.bind(null,"29z5"))}),{ssr:!1,loadableGenerated:{webpack:function(){return["29z5"]},modules:["../components/header/header.js -> components/header/headerExtendedHeaderContainer"]}}),I=function(e){Object(a.a)(t,e);var r=H(t);function t(e){var n;return Object(o.a)(this,t),n=r.call(this,e),Object(d.a)(Object(i.a)(n),"listenScrollEvent",(function(e){window.scrollY>50?n.setState({img:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/logo-res1.png",displayNone:"block",noScrollHamburg:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/hamburg-scrolled.svg",displayBlock:"none",userImg:"https://de5ibyzj5jw9r.cloudfront.net/static/img/user-profile-temp.svg",scrollClass:"ingredients"===n.props.page?"navbar-wrapper-afterScroll-ingre":"navbar-wrapper-afterScroll",logoScrolled:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/logo-res1.png",userProfileResponsive:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/user-profile-scrolled.svg",profileLogo:"https://de5ibyzj5jw9r.cloudfront.net/static/img/user-profile-temp.svg",extendedHeaderBackgroundColor:"#fff",extendedHeaderElementColor:S.u,personaliseColor:S.u}):n.setState({img:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/logo-res1.png",scrollClass:"ingredients"===n.props.page||"sign-in"===n.props.page?"navbar-wrapper-nonScroll-ingredi":"navbar-wrapper-nonScroll",noScrollHamburg:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/hamburg-scrolled.svg",displayNone:"none",displayBlock:"block",userImg:"",logoScrolled:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/logo-res1.png",userProfileResponsive:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/user-profile-scrolled.svg",profileLogo:"https://de5ibyzj5jw9r.cloudfront.net/static/img/user-profile-temp.svg",extendedHeaderBackgroun
1dColor:"rgba(255, 255, 255, 1)",extendedHeaderElementColor:"#fff",personaliseColor:"#fff"})})),Object(d.a)(Object(i.a)(n),"toggleLearn",(function(e){n.setState((function(r){return{isExtendedHeaderVisible:e||!r.isExtendedHeaderVisible,changeHeaderColorOnClick:e||!r.changeHeaderColorOnClick}}))})),Object(d.a)(Object(i.a)(n),"handleLogout",(function(){"true"===localStorage.getItem("isEmailVerified")&&b.a.push("/accounts")})),Object(d.a)(Object(i.a)(n),"getDeliveryprice",(function(){var e=n.props&&n.props.currentUserLoaction&&n.props.currentUserLoaction.country_code;return S.n[Object(k.n)(e)].minValue})),Object(d.a)(Object(i.a)(n),"getPromoMinimumOrderValue",(function(){return"SG"===n.props.currentUserLoaction.country_code||"AU"===n.props.currentUserLoaction.country_code||"NZ"===n.props.currentUserLoaction.country_code?75:"HK"===n.props.currentUserLoaction.country_code?500:44})),Object(d.a)(Object(i.a)(n),"getAnnouncementText",(function(e){var r=n.getPromoMinimumOrderValue();return e=e.replace("$44","$".concat(r))})),n.state={isExtendedHeaderVisible:!1,isNavModalVisible:!1,img:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/logo-res1.png",noScrollHamburg:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/hamburg-scrolled.svg",displayNone:"none",displayBlock:"block",userImg:"",scrollClass:"ingredients"===n.props.page||"sign-in"===n.props.page||"checkout"===n.props.page?"navbar-wrapper-nonScroll-ingredi":"navbar-wrapper-nonScroll",logoScrolled:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/logo-res1.png",userProfileResponsive:"https://de5ibyzj5jw9r.cloudfront.net/static/img/responsive/user-profile-scrolled.svg",showHeaderElement:!1,profileLogo:"https://de5ibyzj5jw9r.cloudfront.net/static/img/user-profile-temp.svg",extendedHeaderBackgroundColor:"rgba(255, 255, 255, 1)",extendedHeaderElementColor:"#fff",personaliseColor:"#fff",changeHeaderColorOnClick:!1,mail:"",isHambugerOpen:!1,isPromoNY30:!1},n}return Object(s.a)(t,[{key:"componentDidMount",value:function(){var e,r,t;Object(x.h)();var n=Object(x.e)();this.props.dispatch(Object(w.f)());var o=(null===n||void 0===n?void 0:n.userid)||sessionStorage.getItem("userId");if(o)O.a.get("token")?this.props.dispatch(Object(C.c)(o)):this.props.dispatch(Object(w.s)({id:o}));else if(O.a.get("token")){var s,i,a=(null===(s=window)||void 0===s||null===(i=s.localStorage)||void 0===i?void 0:i.userId)||"userId";this.props.dispatch(Object(C.c)(a))}var l=JSON.parse(localStorage.getItem("isEmailVerified"));localStorage.getItem("isEmailVerified")&&this.setState({mail:l}),"landing-page"!==this.props.page&&"ingredients"!==this.props.page&&"products"!==this.props.page||window.addEventListener("scroll",this.listenScrollEvent),!l||this.props.isOrderSummary||window.location.href.includes("order-summary")||window.location.href.includes("/checkout")||this.props.dispatch(Object(w.p)()),sessionStorage.promo&&!window.location.href.includes("order-summary")&&this.props.dispatch(Object(w.l)(sessionStorage.promo)),null!==(e=sessionStorage)&&void 0!==e&&e.promo&&null!==(r=sessionStorage)&&void 0!==r&&null!==(t=r.promo)&&void 0!==t&&t.includes("NY30")&&this.setState({isPromoNY30:!0})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.listenScrollEvent)}},{key:"render",value:function(){var e,r,t,o,s,i,a=this.props,l=a.page,c=(a.headerDisplay,a.headerBackgroundColor),d=a.headerBorderRadius,u=a.headerTopOpacity,g=a.headerInitialPadding,h=(a.headerHeight,a.headerOpacity),m=a.headerElementColor,j=a.barColor,f=a.barTextColor,y=void 0===f?"white":f,O=a.title,w=a.fontType,x=a.products,C=a.productsFontSize,S=a.headerHoverBorderColor,k=a.marginRightLogo,H=a.displace,I=a.initials,U=a.cart,D=(a.userData,a.signUp),R=a.emptyOrderCount,T=a.srcPage,B=a.announcementText,G=void 0===B?"High Performance, Clean & Vegan":B,J=a.announcementTextMob,F=void 0===J?"High Performance, Clean & Vegan":J,M=this.state,_=M.changeHeaderColorOnClick,A=(M.scrollClass,M.isExtendedHeaderVisible),Q=M.noScrollHamburg,W=M.mail,Y=M.extendedHeaderBackgroundColor,$=M.extendedHeaderElementColor;return Object(n.jsxs)(p.Fragment,{children:[Object(n.jsx)("div",{style:{},className:"component-header",children:Object(n.jsxs)("div",{style:{backgroundColor:c,borderRadius:d,opacity:u,padding:g||""},children:[Object(n.jsxs)("div",{style:{backgroundColor:"".concat(j)},id:"banner-wrapper",className:"banner-wrapper",children:[G.length>0?Object(n.jsx)("div",{className:"flex justify-center banner-wrapper-desktop emoji-container",style:{color:"".concat(y)},children:Object(n.jsx)(N,{children:this.getAnnouncementText(G)})}):Object(n.jsxs)("div",{className:"flex justify-between banner-wrapper-desktop",children:[Object(n.jsx)("div",{children:"Swiss Standards of Quality & Safety"}
1),Object(n.jsx)("div",{className:"banner-wrapper-item",children:"High Performance, Clean & Vegan"}),Object(n.jsxs)("div",{children:["Free Shipping above $",this.getDeliveryprice()]})]}),Object(n.jsx)("div",{className:"flex justify-center banner-wrapper-mb",children:F.length>0?Object(n.jsx)("div",{className:"card emoji-container",style:{color:"".concat(y)},children:Object(n.jsx)(N,{children:this.getAnnouncementText(F)})}):Object(n.jsxs)(v.a,{gradientWidth:0,children:[Object(n.jsx)("div",{className:"card",children:"Swiss Standards of Quality & Safety"}),Object(n.jsx)("div",{className:"card banner-wrapper-item",children:"High Performance, Clean & Vegan"}),Object(n.jsxs)("div",{className:" card",children:["Free Shipping above $",this.getDeliveryprice()]})]})})]}),Object(n.jsxs)("div",{style:{opacity:h},className:"flex justify-between content-docked-wrapper",children:[Object(n.jsx)(L,{page:l,headerElementColor:m,isExtendedHeaderVisible:A,title:O,fontType:w,headerHoverBorderColor:S,productsFontSize:C,products:x,toggleLearn:this.toggleLearn,toggleNavModal:this.toggleNavModal,noScrollHamburg:Q,changeHeaderColorOnClick:_}),Object(n.jsx)(E,{page:l,marginRightLogo:k,displace:H}),Object(n.jsxs)("div",{style:{justifyContent:this.props.justifyRightContent},className:"flex items-center content-right",children:[Object(n.jsx)(z,{page:l,initials:I||(null===(e=this.props)||void 0===e||null===(r=e.userData)||void 0===r||null===(t=r.firstName)||void 0===t||null===(o=t.charAt(0))||void 0===o?void 0:o.toUpperCase()),cart:U,mail:!!(W||null!==(s=this.props)&&void 0!==s&&null!==(i=s.userData)&&void 0!==i&&i.authToken)||"",srcPage:T}),Object(n.jsx)(P,{emptyOrderCount:R,page:l,cart:U})]}),Object(n.jsx)("div",{className:"flex items-center content-right-responsive",children:"landing-page"===this.props.page?Object(n.jsx)("div",{className:"user-profile-icon-container",children:this.props.initials&&!0===this.state.mail?Object(n.jsx)("figure",{onClick:this.handleLogout,className:"flex items-center justify-center text-lg text-white user-detail-header bold",children:this.props.initials}):Object(n.jsx)("div",{onClick:function(){localStorage.removeItem("directUserLogin"),b.a.push("/sign-in")},children:Object(n.jsx)("img",{src:"https://de5ibyzj5jw9r.cloudfront.net/static/img/user-profile-temp.svg",alt:"user profile"})})}):Object(n.jsx)("div",{className:"user-profile-icon-container",children:this.props.initials&&!0===this.state.mail?Object(n.jsx)("figure",{onClick:this.handleLogout,className:"flex items-center justify-center text-lg text-white user-detail-header bold",children:this.props.initials}):Object(n.jsx)("div",{onClick:function(){localStorage.removeItem("directUserLogin"),b.a.push("/sign-in")}})})})]})]})}),Object(n.jsx)(V,{page:l,toggleLearn:this.toggleLearn,signUp:D,isExtendedHeaderVisible:A,extendedHeaderBackgroundColor:Y,extendedHeaderElementColor:$})]})}}]),t}(u.a.Component);r.default=Object(j.connect)((function(e){var r=e.cart,t=e.category;return{cart:r,userData:e.user.userData,currentUserLoaction:t.currentUserLoaction}}))(I)}}]);
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.