"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[85],{993:(e,t,s)=>{s.r(t)},982:(e,t,s)=>{s.r(t)},992:(e,t,s)=>{s.r(t)},990:(e,t,s)=>{s.r(t)},985:(e,t,s)=>{s.r(t)},987:(e,t,s)=>{s.r(t)},988:(e,t,s)=>{s.r(t)},980:(e,t,s)=>{const n=s(366);(0,s(4).createEntrypoint)("landingPage",n.LandingPage)()},366:function(e,t,s){var n=this&&this.__awaiter||function(e,t,s,n){return new(s||(s=Promise))((function(i,l){function a(e){try{r(n.next(e))}catch(e){l(e)}}function c(e){try{r(n.throw(e))}catch(e){l(e)}}function r(e){var t;e.done?i(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(a,c)}r((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.LandingPage=void 0;const i=s(0),l=s(1),a=s(3),c=s(981),r=s(983),o=s(989),d=s(991);s(993),t.LandingPage=function({landingHero:e,landingTitles:t,landingPurchaseInfo:s,landingVideo:p}){const[u,g]=(0,a.useState)(1),[m,j]=(0,a.useState)(""),[h,b]=(0,a.useState)(!1),[{where:x,retail:_},v]=(0,a.useState)({where:"",retail:""}),y=(0,a.useCallback)((()=>{(({emailValue:e,where:t,retail:s,agreement:i})=>{n(this,void 0,void 0,(function*(){const n=new URLSearchParams,l={token:"NhVDeY",event:"Purchase Registration",customer_properties:Object.assign({$email:e},i?{$consent:["email"]}:{}),properties:{purchaseLocation:""!==s?[s]:[t]}};n.set("data",JSON.stringify(l));const a={method:"POST",headers:{accept:"text/html","content-type":"application/x-www-form-urlencoded"},body:n};yield fetch("https://a.klaviyo.com/api/track",a).then((e=>e.json())).then((e=>console.log(e))).catch((e=>console.error("error:"+e)))}))})({emailValue:m,where:x,retail:_,agreement:h})}),[x,_,u,m]);return(0,i.jsx)("div",Object.assign({className:"wrapper"},{children:4!==u?(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(c.LandingPageHero,Object.assign({},e)),(0,i.jsx)(d.LandingPageTitles,Object.assign({},t)),(0,i.jsx)(r.LandingPurchaseInfo,Object.assign({},s,{step:u,setStep:g,emailValue:m,setEmailValue:j,setPick:v,onSend:y,agreement:h,setAgreement:b}))]}):(0,i.jsx)("div",Object.assign({style:{marginTop:"140px"}},{children:(0,i.jsx)(o.LandingPageVideo,Object.assign({},p))}))}))}},981:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LandingPageHero=void 0;const n=s(0);s(1),s(982),t.LandingPageHero=({imgUrl:e,alt:t})=>(0,n.jsxs)("div",Object.assign({className:"hero-wrapper"},{children:[(0,n.jsx)("img",{src:e,alt:t,width:2560,height:553}),(0,n.jsx)("div",{id:"step4"})]}))},991:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LandingPageTitles=void 0;const n=s(0);s(1),s(992),t.LandingPageTitles=({title:e,subtitle:t})=>(0,n.jsx)("div",Object.assign({class:"titlesWrapper"},{children:(0,n.jsxs)("div",Object.assign({class:"titlesWrapper__titles"},{children:[(0,n.jsx)("h1",{children:e}),(0,n.jsx)("h2",{children:t})]}))}))},989:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LandingPageVideo=void 0;const n=s(0),i=(s(1),s(3));s(990),t.LandingPageVideo=({title:e,subtitle:t,subtitleDesc:s})=>((0,i.useEffect)((()=>{window.scrollTo(0,0)}),[]),(0,n.jsxs)("div",Object.assign({className:"wrapper"},{children:[(0,n.jsx)("div",Object.assign({className:"wrapper__plam_left"},{children:(0,n.jsx)("img",{src:"https://i.imgur.com/4qX32fO.png",alt:"background plan left"})})),(0,n.jsx)("div",Object.assign({style:{display:"block"},className:"wrapper__plam_right"},{children:(0,n.jsx)("img",{src:"https://i.imgur.com/TXncsNY.png",alt:"background plan right"})})),(0,n.jsx)("div",Object.assign({className:"wrapper__title_wrapper"},{children:(0,n.jsx)("h2",{children:e})})),(0,n.jsx)("div",Object.assign({className:"wrapper__video_wrapper",style:{minHeight:450}},{children:(0,n.jsx)("iframe",{src:"https://www.youtube.com/embed/U6WFQFUbMTM",title:"How To Use Your BlendJet Portable Blender - BlendJet 2 Tips and Tricks",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})),(0,n.jsxs)("div",Object.assign({className:"wrapper__title_wrapper"},{children:[(0,n.jsx)("h3",{dangerouslySetInnerHTML:{__html:t}}),(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:s}})]}))]})))},983:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LandingPurchaseInfo=void 0;const n=s(0),i=s(1),l=s(984),a=s(986);s(988),t.LandingPurchaseInfo=({emailLabel:e,firstSelectTitle:t,secondSelectTitle:s,places:c,stores:r,step:o,setStep:d,emailValue:p,setEmailValue:u,setPick:g,onSend:m,agreement:j,setAgreement:h})=>(0,n.jsx)("div",Object.assign({className:"wrapper"},{children:4!==o?(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("div",Object.assign({style:{display:"block"},className:"wrapper__plam_left"},{children:(0,n.jsx)("img",{src:"https://i.imgur.com/4qX32fO.png",alt:"background plan left"})})),(0,n.jsx)("div",Object.assign({className:"wrapper__dot_top",style:{display:2===o?"block":"none"}},{children:(0,n.jsx)("img",{src:"https://i.imgur.com/9btvtSO.png",alt:"background plan top"})})),1===o?(0,n.jsx)(l.EmailForm,{setEmailValue:u,emailLabel:e,setStep:d,agreement:j,setAgreement:h}):null,p?(0,n.jsx)(a.SelectForm,{firstSelectTitle:t,secondSelectTitle:s,places:c,stores:r,step:o,setStep:d,setPick:g,onSend:m}):null,(0,n.jsx)("div",Object.assign({style:{display:"block"},className:"wrapper__plam_right"},{children:(0,n.jsx)("img",{src:"https://i.imgur.com/TXncsNY.png",alt:"background plan right"})})),(0,n.jsx)("div",Object.assign({className:"wrapper__dot_bottom",style:{display:2===o?"block":"none"}},{children:(0,n.jsx)("img",{src:"https://i.imgur.com/9btvtSO.png",alt:"dot bottom"})})),(0,n.jsx)("div",Object.assign({className:"wrapper__dot_left",style:{display:2===o?"block":"none"}},{children:(0,n.jsx)("img",{src:"https://i.imgur.com/9btvtSO.png",alt:"dot left"})}))]}):null}))},984:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EmailForm=void 0;const n=s(0),i=(s(1),s(3));s(985),t.EmailForm=({emailLabel:e,setEmailValue:t,setStep:s,agreement:l,setAgreement:a})=>{const[c,r]=(0,i.useState)("");return(0,n.jsxs)("div",Object.assign({className:"email_wrapper"},{children:[(0,n.jsx)("h2",Object.assign({id:"step1"},{children:e})),(0,n.jsxs)("form",Object.assign({onSubmit:e=>{e.preventDefault(),t(c),s(2);const n=document.getElementById("step2");null==n||n.scrollIntoView({block:"center",inline:"center"})},style:"display: flex; justify-content: center;"},{children:[(0,n.jsx)("input",{type:"email",name:"email",value:c,onInput:e=>{r(e.currentTarget.value)},placeholder:"Email",onFocus:e=>{e.preventDefault();const t=document.getElementById("step1");null==t||t.scrollIntoView({block:"center",inline:"center"})}}),(0,n.jsxs)("label",Object.assign({style:"padding: 20px 0 0 25px;"},{children:[(0,n.jsx)("input",{type:"checkbox",checked:l,onChange:({target:{checked:e}})=>{a(e)}}),(0,n.jsxs)("span",Object.assign({style:"text-align:left; cursor: pointer;"},{children:["By submitting your email address, you accept our"," ",(0,n.jsxs)("a",Object.assign({target:"_blank",href:"/terms-of-service"},{children:["Terms of Service"," "]})),"and"," ",(0,n.jsx)("a",Object.assign({target:"_blank",href:"/privacy-policy"},{children:"Privacy Policy"})),"."]}))]})),(0,n.jsx)("button",Object.assign({disabled:!c.includes("@")},{children:"CONTINUE"}))]}))]}))}},986:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectForm=void 0;const n=s(0),i=(s(1),s(3));s(987),t.SelectForm=({step:e,setStep:t,firstSelectTitle:s,secondSelectTitle:l,places:a,stores:c,setPick:r,onSend:o})=>{const[d,p]=(0,i.useState)(""),[u,g]=(0,i.useState)(""),m=e=>{if(p(e.currentTarget.value),"Retail Store"!=e.currentTarget.value){g("");const e=setTimeout((()=>{clearTimeout(e);const t=document.getElementById("step2a");null==t||t.scrollIntoView({block:"center",inline:"center"})}),100)}else{const e=setTimeout((()=>{clearTimeout(e);const t=document.getElementById("step3");null==t||t.scrollIntoView({block:"center",inline:"center"})}),100)}},j=e=>{g(e.currentTarget.value);const t=setTimeout((()=>{clearTimeout(t);const e=document.getElementById("step3a");null==e||e.scrollIntoView({block:"center",inline:"center"})}),100)};(0,i.useEffect)((()=>{p("BlendJet.com")}),[]),(0,i.useEffect)((()=>{r({where:d,retail:u})}),[d,u]);const h=()=>{if("Retail Store"===d&&1===e)t(2);else{t(4),o();const e=setTimeout((()=>{clearTimeout(e);const t=document.getElementById("step4");null==t||t.scrollIntoView({block:"center",inline:"center"})}),100)}};return(0,n.jsxs)("div",Object.assign({className:"select__wrapper"},{children:[(0,n.jsxs)("div",Object.assign({style:{display:"block",width:"100%"}},{children:[(0,n.jsx)("h2",Object.assign({id:"step2"},{children:s})),(0,n.jsx)("div",Object.assign({className:"select__wrapper__place_selectors",id:"step2a"},{children:a.map((e=>(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",value:e,checked:d===e,onInput:m})," ",e]})))})),"Retail Store"!==d?(0,n.jsx)("button",Object.assign({onClick:h},{children:"Continue"})):null]})),"Retail Store"===d&&2===e?(0,n.jsxs)("div",Object.assign({style:{width:"100%"}},{children:[(0,n.jsx)("h2",Object.assign({id:"step3"},{children:l})),(0,n.jsx)("div",Object.assign({className:"select__wrapper__store_selectors"},{children:c.map((e=>(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",value:e,checked:u===e,onInput:j})," ",e]})))})),(0,n.jsx)("button",Object.assign({id:"step3a",disabled:!u,onClick:h},{children:"Continue"}))]})):null]}))}}},e=>{e.O(0,[1,2],(()=>(980,e(e.s=980)))),e.O()}]);