1(self.webpackChunkgatsby_starter_autonomy=self.webpackChunkgatsby_starter_autonomy||[]).push([[372],{51183:function(e,t,n){"use strict";var r=n(67294),o=n(71082),i=n(92194),a=n(4234),l=n(65558),s=n(78877);t.Z=()=>{const[e,t]=(0,i.If)("OPE");return(0,r.useEffect)((()=>{t("OPE")})),(0,a.tZ)(l.W2,{"data-builder-component":"page","data-name":"not-found-page","data-builder-model":"page"},(0,a.tZ)(l.kC,{sx:{maxWidth:"1440px",flexDirection:["column","row"],width:"100%",alignItems:"center",margin:" auto",justifyContent:"space-between"}},(0,a.tZ)(l.xu,{sx:{width:["100%","30%"],order:["2","1"]}},(0,a.tZ)(l.X6,{as:"h1",variant:"h2",sx:{marginBottom:"2rem"}},"No Noodles Here :("),(0,a.tZ)(l.zx,{as:o.Link,to:"/shop/",sx:{display:"flex",alignItems:"center",justifyContent:"center"}},"Shop Mac")),(0,a.tZ)(l.xu,{sx:{width:["100%","65%"],overflow:"hidden",order:["1","2"]}},(0,a.tZ)(s.Z,{sx:{alignSelf:"center",display:"block",fontSize:"25em",fontFamily:"heading",transform:"rotate(22deg)"}},"404"))))}},38655:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(4234);function o(e){let{fill:t,sx:n={},...o}=e;return(0,r.tZ)("svg",Object.assign({},o,{sx:{transform:"translateY(-2px)",...n},strokeWidth:0,width:"100%",height:"190",xmlns:"http://www.w3.org/2000/svg"}),(0,r.tZ)("defs",null,(0,r.tZ)("pattern",{id:`bg${t}`,overflow:"visible",stroke:t,patternUnits:"userSpaceOnUse",width:"1321",height:"191",viewBox:"0 0 1321 191"},(0,r.tZ)("path",{d:"M0.280273 40.6195C19.6115 29.0991 49.5749 15.452 87.9151 14.7431C153.641 13.6797 178.127 71.1041 252.875 75.3577C326.011 79.4342 341.798 28.0357 415.579 23.9593C545.098 17.0471 581.828 187.016 706.836 190.207C846.343 193.751 903.048 1.09592 1027.73 13.8569C1119.56 23.2504 1149.52 93.4359 1227.81 90.6001C1270.34 89.005 1300.63 63.8374 1320.28 40.6195C1320.28 22.8736 1320.28 10.9266 1320.28 0.754883L660.28 0.754883L0.280273 0.754883L0.280273 40.6195Z",fill:t,stroke:t,strokeWidth:"3"}))),(0,r.tZ)("rect",{width:"100%",height:"100%",fill:`url(#bg${t})`}))}},25301:function(e,t,n){"use strict";var r=n(4234);t.Z=e=>{let{children:t,forwardSx:n={}}=e;return(0,r.tZ)("div",{sx:{...n}},t)}},64151:function(e,t,n){"use strict";var r=n(67294),o=n(71082),i=n(92194),a=n(65558),l=n(78877),s=n(38655),c=n(76029),m=n(19127);t.Z=()=>{const[,e]=(0,i.If)(),t=(0,c.qM)();(0,r.useEffect)((()=>{e("Gift-Flow")}),[]);return r.createElement(r.Fragment,null,r.createElement(s.G,{sx:{transform:["scale(150%, 40%) translateX(-10%)","scale(150%, 20%) translateX(-10%)"],marginTop:-82,marginBottom:[-20,-32],width:["100%","100%"],shapeRendering:"crispEdges",backgroundColor:"middleBackground"},fill:"#00E0BE"}),r.createElement(a.kC,{sx:{justifyContent:"center",marginTop:["-51px"],padding:"0 40px",position:"relative",color:"secondary",backgroundColor:"middleBackground"}},r.createElement(a.kC,{sx:{flexFlow:"column wrap",justifyContent:"space-between",textAlign:"center",border:"1px solid",borderColor:"background",width:750,padding:30,borderRadius:8,margin:["20px 0 60px 0","60px 0 80px 0"]}},r.createElement(a.Ee,{sx:{width:[150,195],objectFit:"contain",margin:"0 auto"},src:"/images/sad-mac.png",alt:"sad macaroni"}),r.createElement(l.Z,{sx:{fontFamily:"Sofia-Pro",fontSize:[18,20],margin:["10px 0","14px 0"],color:"background"}},t("custom_error.process_failed",{contact_link:r.createElement(o.Link,{to:(0,m.ju)("/contact")},r.createElement(l.Z,{sx:{textDecoration:"underline",textTransform:"lowercase"}},t("gifting_flow.contact_us")))})))))}},91453:function(e,t,n){"use strict";var r=n(67294),o=n(65558),i=n(12852);const a={position:"fixed",margin:"auto",top:0,background:"#00E0BE",width:"100%",height:"100%",overflow:"hidden",zIndex:10},l={width:"fit-content",margin:"25% auto"};t.Z=()=>r.createElement(r.Fragment,null,r.createElement(o.xu,{sx:a,"data-testid":"big-spinner"},r.createElement(o.xu,{sx:l},r.createElement(i.Z,{size:100}))))},26199:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67294),o=n(51183);var i=e=>{let{location:t,children:n}=e;const i=(a=null==t?void 0:t.search,new URLSearchParams(a).get("gifting-flow-enabled"),!0);var a;return r.createElement(r.Fragment,null,i?n:r.createElement(o.Z,null))}},94626:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(67294),o=n(92194),i=n(65558),a=n(71082),l=n(54437),s=n(76029),c=n(19127),m=n(78877);var d=(0,r.forwardRef)(((e,t)=>{let{label:n,subLabel:o="",type:a="text",errorText:l,sx:s,...c}=e;const d={flexFlow:"wrap column",width:"100%",...s},u={fontFamily:"heading",marginBottom:"10px",color:"secondary"};return r.createElement(i.kC,{sx:d},n&&r.createElement(i.__,{htmlFor:c.name,sx:u},n),r.createElement(i.kC,{sx:{flexFlow:"column",width:"100%"}},r.createElement(i.II,Object.assign({},c,{id:c.name,variant:"forms.input.gift",type:a,ref:t})),o&&r.createElement(m.Z,{sx:{...u,fontWeight:"body",marginTop:"6px",fontSize:"0.75rem"}},o),l&&r.createElement(m.Z,{sx:{color:"error",fontWeight:"body",marginTop:"6px"}},l)))}));var u=(0,r.forwardRef)(((e,t)=>{let{label:n,children:o,errorText:a,sx:l,...s}=e;const c={width:"100%",flexFlow:"wrap column",...l};return r.createElement(i.kC,{sx:c},n&&r.createElement(i.__,{htmlFor:s.name,sx:{fontFamily:"heading",marginBottom:"10px",color:"secondary"}},n),r.createElement(i.Ph,Object.assign({arrow:r.createElement(i.xu,{as:"svg",width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",sx:{ml:-28,alignSelf:"center",pointerEvents:"none"}},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.01213 6L10.002 0.863219L9.14367 0L4.99197 4.27397L0.840277 0L0.00195312 0.863219L4.99177 6H5.01213Z",fill:"#2B38BD"}))},s,{variant:"forms.input.gift",ref:t}),r.createElement("option",{value:""}),o),a&&r.createElement(m.Z,{sx:{color:"error",fontWeight:"body",marginTop:"6px"}},a))})),p=n(50481),f=n(36141);var g=e=>{let{gifts:t,onSelection:n,selected:o,selectionMade:a,noSelectionNedeed:l,errorText:s,title:c,intro:d}=e;const u=(0,r.useRef)(null);return(0,r.useEffect)((()=>{s&&u.current.scrollIntoView({behavior:"smooth",block:"center"})})),r.createElement(r.Fragment,null,r.createElement(p.Z,{as:"h4",sx:{textAlign:"center",color:"secondary",margin:"55px auto 0",maxWidth:[250,700]},variant:"h3"},c),!l&&r.createElement(m.Z,{sx:{display:"block",textAlign:"center",color:"tertiary",fontFamily:"Sofia-Pro",fontWeight:"200",fontSize:[18,24],maxWidth:[340,490],margin:"60px auto 0"}},d),s&&r.createElement(m.Z,{sx:{color:"#ffffff",fontWeight:"body",marginTop:"6px",textAlign:"center",padding:"12px 24px",backgroundColor:"#FF5A47",borderRadius:"4px",width:"fit-content",display:"block",margin:"20px auto 0",border:"1px solid rgba(255, 255, 255, .25)"},ref:u},s),r.createElement(i.kC,{sx:{justifyContent:"center",flexFlow:["column","wrap"],margin:"0 auto 80px"},my:4},t.map((e=>{let{images:t,sku:i,name:l,description:s,slug:c,options_text:m}=e;const{alt:d,small_url:u}=t[0],p=null!=d?d:`image-${i}`;return r.createElement(f.Z,{alt:p,imageUrl:u,key:i,name:l,optionsText:m,description:s,onSelection:n,selected:i===o,sku:i,selectionMade:a,slug:c})}))))};var x=e=>{let{formSubmit:t,states:n,gifts:o,formSubmitting:p,multiUseError:f="",isLoading:x}=e;const h=(0,s.qM)(),{register:w,handleSubmit:b,setValue:v,watch:y,clearError:E,formState:{errors:k}}=(0,l.cI)(),_=y("sku"),S=1===o.length,{0:C,1:Z}=(0,r.useState)(!1),z=h(S?"gifting_flow.selector.here_is_your_gift":"gifting_flow.selector.choose_gift");(0,r.useEffect)((()=>{S&&(v("sku",o[0].sku),Z(!0))}),[]);const j={width:"100%",justifyContent:"space-between",flexFlow:["column","nowrap"]},F={border:"none",width:"100%",maxWidth:800,margin:"0 auto"},L={padding:"0 15px 35px"};return r.createElement(i.kC,{as:"form",onSubmit:b(t),"data-builder-component":"form","data-name":"gift-redemption-form","data-builder-model":"gift",sx:{flexDirection:"column",margin:"0 auto 100px"},"data-testid":"gift-form"},r.createElement(g,{gifts:o,selected:_,selectionMade:C,onSelection:e=>{v("sku",e),Z(!0),null!=k&&k.sku&&E("sku")},noSelectionNedeed:S,errorText:(null==k?void 0:k.sku)&&h("gifting_flow.selector.error"),title:z,intro:
1h("gifting_flow.selector.intro")}),r.createElement("fieldset",{style:F},r.createElement(i.kC,{sx:j},r.createElement(d,Object.assign({},w("firstname",{required:!0,minLength:2,maxLength:80}),{label:h("gifting_flow.form.firstname"),type:"text",sx:L,errorText:(null==k?void 0:k.firstname)&&h("gifting_flow.form.error.firstname")})),r.createElement(d,Object.assign({},w("lastname",{required:!0,minLength:2,maxLength:80}),{label:h("gifting_flow.form.lastname"),type:"text",sx:L,errorText:(null==k?void 0:k.lastname)&&h("gifting_flow.form.error.lastname")}))),r.createElement(i.kC,{sx:j},r.createElement(d,Object.assign({},w("email",{required:!0,maxLength:80,pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}),{label:h("gifting_flow.form.email"),type:"email",sx:L,errorText:(null==k?void 0:k.email)&&h("gifting_flow.form.error.email")})),r.createElement(d,Object.assign({},w("phone",{required:!1,minLength:6,maxLength:16}),{label:h("gifting_flow.form.phone"),type:"tel",sx:L,errorText:(null==k?void 0:k.phone)&&h("gifting_flow.form.error.phone")})))),r.createElement("fieldset",{style:F},r.createElement("legend",{style:{width:"100%"}},r.createElement(m.Z,{sx:{display:"block",textAlign:"center",fontWeight:"bold",fontFamily:"heading",fontSize:32,lineHeight:1,color:"secondary",textTransform:"uppercase",margin:"10px auto 18px",maxWidth:[300,700]}},h("gifting_flow.form.delivery_info")),r.createElement(m.Z,{sx:{color:"secondary",display:"block",textAlign:"center",fontSize:14,margin:"0px auto 25px"}},h("gifting_flow.form.delivery_info_usa"))),r.createElement(i.kC,{sx:j},r.createElement(d,Object.assign({},w("address1",{required:!0,minLength:10,maxLength:120}),{label:h("gifting_flow.form.address1"),subLabel:h("gifting_flow.form.addressWarn"),type:"text",sx:L,errorText:(null==k?void 0:k.address1)&&h("gifting_flow.form.error.address1")})),r.createElement(d,Object.assign({},w("city",{required:!0,minLength:2,maxLength:80}),{label:h("gifting_flow.form.city"),type:"text",sx:L,errorText:(null==k?void 0:k.city)&&h("gifting_flow.form.error.city")}))),r.createElement(i.kC,{sx:j},r.createElement(u,Object.assign({sx:L},w("state_name",{required:!0,validate:e=>n.map((e=>e.name)).includes(e)}),{label:h("gifting_flow.form.state_name"),"data-testid":"state_name",errorText:(null==k?void 0:k.state_name)&&h("gifting_flow.form.error.state_name")}
1),n.map((e=>{let{id:t,name:n}=e;return r.createElement("option",{key:t,value:n},n)}))),r.createElement(d,Object.assign({},w("zipcode",{required:!0,minLength:2,maxLength:16}),{label:h("gifting_flow.form.zipcode"),type:"text",inputmode:"numeric",pattern:"^(?(^00000(|-0000))|(\\d{5}(|-\\d{4})))$",sx:L,errorText:(null==k?void 0:k.zipcode)&&h("gifting_flow.form.error.zipcode")}))),r.createElement(i.kC,{mb:50,pr:4,sx:{columnGap:"8px"}},r.createElement(i.__,{sx:{...L,width:"min-content"},mr:1},r.createElement(i.XZ,Object.assign({defaultChecked:!1},w("subscribed",{required:!1})))),r.createElement(i.kC,{sx:{flexDirection:"column"}},r.createElement(m.Z,{sx:{color:"secondary",fontSize:14,fontFamily:"heading"},mb:2},h("gifting_flow.form.checkbox_label")),r.createElement(m.Z,{sx:{color:"tertiary",fontSize:12,fontFamily:"Sofia-Pro"}},h("gifting_flow.form.checkbox_text",{terms:r.createElement(a.Link,{to:(0,c.ju)("/messaging-terms")},r.createElement(m.Z,{sx:{textDecoration:"underline"}},h("gifting_flow.form.terms"))),privacy_policy:r.createElement(a.Link,{to:(0,c.ju)("/messaging-privacy-policy")},r.createElement(m.Z,{sx:{textDecoration:"underline"}},h("gifting_flow.form.privacy")))}))))),f&&r.createElement(m.Z,{sx:{m:"1rem auto",color:"error",fontWeight:"body",whiteSpace:"pre-line",textAlign:"center"}},f," ",r.createElement(m.Z,{onClick:()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.GorgiasChat)||void 0===t?void 0:t.open()},sx:{textDecoration:"underline",cursor:"pointer"}},"Contact us here for help")),r.createElement(i.zx,{"data-builder-component":"button","data-name":"gift-submit-button",m:"0 auto",type:"submit",variant:"buttons.gift.form.inverted",disabled:p||x},x?r.createElement(i.$j,{color:"black",size:24}):r.createElement(m.Z,null,h(p?"gifting_flow.form.submitting":"gifting_flow.form.submit"))))};var h=e=>{let{avatar:t,name:n,message:o,sx:a}=e;const l=(0,s.qM)(),c={justifyContent:"center",...a},d={display:"flex",justifyContent:"center",minWidth:"80px",height:"80px",lineHeight:"80px",borderRadius:"100%",backgroundColor:"secondary",img:{margin:"auto",lineHeight:"80px",width:t?"80px":"60px",height:t?"80px":"60px",borderRadius:"100%",objectFit:"cover"}};return r.createElement(i.kC,{sx:c},r.createElement(i.kC,{sx:{color:"secondary",border:"1px solid",borderColor:"tertiary",borderRadius:"8px",position:"relative",flexFlow:"column wrap",padding:"30px",width:["auto","500px"]},"data-testid":"gifter-card"},r.createElement(i.kC,{sx:{display:"flex",flexFloe:"row nowrap",justifyItems:"center"}},r.createElement(i.xu,{sx:d},r.createElement(i.Ee,{src:t||"/images/logo.png"})),r.createElement(i.xu,{sx:{display:"flex",flexFlow:"column",margin:"auto 20px"}},r.createElement(m.Z,{sx:{fontSize:"14px",fontWeight:"700"}},l("gifting_flow.card.gift_from")),r.createElement(m.Z,{sx:{fontSize:"24px",fontWeight:"700"}},n))),r.createElement(i.kC,{m:"auto"},r.createElement(m.Z,{mt:30,sx:{fontSize:"20px",fontWeight:"700",textAlign:"center"}},null!=o?o:l("gifting_flow.card.default_message")))))},w=n(26539),b=n.n(w);const v="https://goodles-gifting.herokuapp.com/api",y=v.endsWith("/")?v.slice(0,-1):v;var E=e=>{const t=(0,s.qM)(),{0:n,1:o}=(0,r.useState)(!1),{0:i,1:l}=(0,r.useState)(null);return[n,async n=>{let{email:i,sku:s,...d}=n;o(!0);const{subscribed:u,...p}=d,f={slug:e,subscribe:u,order_attrs:{email:i,bill_address_attributes:p,ship_address_attributes:p,line_items_attributes:[{quantity:1,sku:s}]}},{complete_response:g}=await(async e=>{let{slug:t,subscribe:n,order_attrs:r}=e;try{return(await b().post(`${y}/redeem_gift/${t}`,{subscribe:n,order_attrs:r})).data}catch(o){return console.error("Axios Error:",o),new Error(o)}})(f);return null!=g&&g.number?g:(l(t("gifting_flow.submission_failed_error",{contact_link:r.createElement(a.Link,{to:(0,c.ju)("/contact")},r.createElement(m.Z,{sx:{textDecoration:"underline"}},t("gifting_flow.contact_us")))})),o(!1))},i]};var k=e=>{(0,r.useEffect)((()=>(window.history.pushState("fake-route",document.title,window.location.href),window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e),"fake-route"===window.history.state&&window.history.back()})),[])},_=n(64151);var S=e=>{var t,n,l;
1let{slug:s,fakeNavigateTo:c,gift:m,states:d}=e;const[,u]=(0,o.If)(),[p,f,g]=E(s),{0:w,1:b}=(0,r.useState)(null),{0:v,1:y}=(0,r.useState)(!1);k((()=>c("landing")));(0,r.useEffect)((()=>{u("Gift-Flow-Form")}),[]);return r.createElement(r.Fragment,null,g?r.createElement(_.Z,null):r.createElement(i.kC,{sx:{flexFlow:"column wrap"}},r.createElement(i.xu,null,r.createElement(h,{sx:{margin:"0 25px 0"},avatar:null==m||null===(t=m.gift_details)||void 0===t?void 0:t.avatar_url,name:null==m||null===(n=m.gift_details)||void 0===n?void 0:n.gifters_name,message:null==m||null===(l=m.gift_details)||void 0===l?void 0:l.message}),r.createElement(x,{formSubmit:async e=>{y(!0),b(null);const t=await(async e=>fetch("/.netlify/functions/gift-multiuse-check",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).catch((e=>console.error(e))))(e);if(t)y(!1),b("Your gift has already been redeemed.");else{y(!1),console.log("Is Gift Redeemed --",t);const{number:n,token:r}=await f(e);if(n)return(0,a.navigate)(`/gift-from/confirmation?number=${n}&token=${r}`)}},states:d,gifts:m.products_data,formSubmitting:p,multiUseError:w,isLoading:v}))))}},79521:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(67294),o=n(71082),i=n(26878),a=n.n(i),l=n(95743),s=n(65558),c=n(76029),m=n(50481);var d=e=>{let{title:t,children:n,variant:o="main",fakeNavigateTo:i}=e;const a=(0,c.qM)(),l={flexDirection:"column",color:"main"===o?"inherit":"primary",maxWidth:"577px",margin:["auto","unset"],"@media screen and (max-width: 1200px)":{margin:"auto",flexDirection:"column",textAlign:"center",alignItems:"center"}};return r.createElement(s.kC,{sx:l},r.createElement(m.Z,{as:"h1",variant:"h1",sx:{width:"100%",lineHeight:"1 !important"}},t),n,r.createElement(s.zx,{"data-builder-component":"button","data-name":"gift-redeem-button",sx:{width:["100%","fit-content"]},"data-testid":"redeem-button",type:"submit",variant:"buttons.gift."+("main"===o?"primary":"secondary"),onClick:()=>i("form")},a("gifting_flow.landing.redeem")))},u=n(78877),p=n(38655),f=n(38032),g=n(68197),x=n(25301);const h=e=>{let{justifySelf:t,imgObj:n}=e;return r.createElement(s.xu,{sx:{width:"fit-content",justifySelf:["center",t]}},r.createElement(s.rj,{sx:{width:["auto",120],height:["150px","auto"],margin:"auto",...(o=15,i=6e3+1e3*Math.random(),{animation:`${g.F4` 2 0% { transform: translate(0%, 0px); } 3 50% { transform: translate(0, -${o}px); } 4 100% { transform: translate(0, 0px); } 5 `} ${i}ms infinite ease-in-out`})}},r.createElement(f.G,{imgStyle:{objectFit:"contain"},image:n.gatsbyImageData,alt:n.title}),r.createElement(u.Z,{variant:"text.eyebrow"},n.title)));var o,i},w=e=>{let{leftValuePropImages:t,rightValuePropImages:n,image:o}=e;return r.createElement(s.rj,{columns:[1," minmax(120px,200px) minmax(0px,700px) minmax(120px,200px)"]},r.createElement(s.rj,{columns:[3,1],sx:{width:["90%","100%"],maxWidth:["100%",200],justifySelf:["center","end"]}},t.map(((e,t)=>r.createElement(h,{justifySelf:1===t?"start":"end",imgObj:e,key:t})))),r.createElement(s.xu,{sx:{width:["85%","100%"],justifySelf:"center"}},r.createElement(f.G,{image:o,alt:null==o?void 0:o.title})),r.createElement(s.rj,{columns:[3,1],sx:{width:["90%","100%"],maxWidth:["100%",200],justifySelf:["center"]}},n.map(((e,t)=>r.createElement(h,{justifySelf:1===t?"end":"start",imgObj:e,key:t})))))};var b=e=>{let{bowlImage:t,valuePropHeading:n,valuePropSubheading:o,valuePropImage:i,extendedStyles:a}=e;const l=i.valuePropImage.slice(0,3),c=i.valuePropImage.slice(3,6);return r.createElement(s.xu,{sx:{...a}},r.createElement(x.Z,null,r.createElement(m.Z,{sx:{width:["85%","auto"],maxWidth:800,pt:96,mx:"auto",mb:12},variant:"text.h2"},n)),r.createElement(x.Z,null,r.createElement(u.Z,{as:"p",sx:{width:["85%","auto"],maxWidth:680,marginBottom:60,fontSize:18,px:"10px",mx:"auto"}},o)),r.createElement(w,{image:t.gatsbyImageData,leftValuePropImages:l,rightValuePropImages:c}
5))};var v=e=>{var t;let{fakeNavigateTo:n,gifterName:i,gifterAvatar:f}=e;const{theme:g,setColorMode:x}=(0,l.B7)(),h=g.rawColors.modes["Gift-Flow"],w=(0,c.qM)(),v=(0,r.useRef)();(0,r.useEffect)((()=>{x("Gift-Flow"),new(a())(v.current,{breakpoints:[300,760,1060]})}),[x]);const{home:{bowlImage:y,valuePropHeading:E,valuePropSubheading:k,valuePropImage:_},landingGiftImage:S}=(0,o.useStaticQuery)("4109594177"),C=null==i||null===(t=i.split(""))||void 0===t?void 0:t.includes("&"),Z=null==S?void 0:S.url;return r.createElement(r.Fragment,null,r.createElement(s.kC,{sx:{flexDirection:"row",justifyContent:"center","@media screen and (max-width: 1200px)":{flexDirection:"column"}}},r.createElement(s.xu,null,r.createElement(s.kC,{sx:{alignItems:"center",padding:["0 20px","0 80px"],maxWidth:"1440px",justifyContent:["center","flex-start"],my:40,mx:["auto","auto",0],h2:{width:"min-content",fontSize:[36,60],maxWidth:["none",500]},img:{width:80,height:80,minWidth:80,padding:1,mr:20,borderRadius:"100%",objectFit:"cover"},"@media screen and (max-width: 1200px)":{justifyContent:"center",padding:["0 20px"]}}},r.createElement(s.Ee,{src:f||"/images/logo.png"}),r.createElement(m.Z,{as:"h2",variant:"h2",sx:{lineHeight:1,color:"secondary",m:0,display:"inline-table"}},i)),r.createElement(s.kC,{sx:{padding:["0 40px","0 80px"],position:"relative",color:"secondary",height:["auto",560],flexDirection:["column","unset"],maxWidth:"1440px","@media screen and (max-width: 1200px)":{height:"auto",flexDirection:"column"}}},r.createElement(d,{title:w(C?"gifting_flow.landing.gift_for_you_hero.titleP":"gifting_flow.landing.gift_for_you_hero.title"),fakeNavigateTo:n,gifterName:i,gifterAvatar:f},r.createElement(u.Z,{sx:{fontFamily:"heading",fontSize:20,mt:30}},w(C?"gifting_flow.landing.gift_for_you_hero.subtitleP":"gifting_flow.landing.gift_for_you_hero.subtitle",{gifterName:i})),r.createElement(u.Z,{sx:{mt:10,mb:30}},w("gifting_flow.landing.gift_for_you_hero.description"))))),r.createElement(s.xu,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"40%","@media screen and (max-width: 1200px)":{width:"100%"}}},r.createElement(s.Ee,{sx:{display:"block",maxWidth:["350px","min(50vw,100%)"],margin:["auto","unset"],zIndex:1},src:Z||"/images/gift_box.png",ref:v,"data-rellax-speed":"-2","data-rellax-mobile-speed":"-1.5"}))),r.createElement(p.G,{sx:{transform:["scale(70%, 64%) translate(-30%, 34%) rotate(180deg)"],width:"200%",position:"relative"},fill:null==h?void 0:h.secondary}),r.createElement(s.xu,{sx:{backgroundColor:"secondary",display:"flex",flexDirection:"column",alignItems:"center"}},r.createElement(b,{bowlImage:y,valuePropHeading:E,valuePropSubheading:k,valuePropImage:_,extendedStyles:{color:null==h?void 0:h.background,paddingX:[0,50],pb:80,width:"fit-content",margin:"0 auto",textAlign:"center",pt:[350,"unset"],mt:[-400,"unset"]}}),r.createElement(s.xu,{sx:{width:["100%","auto"],padding:"0 30px",marginBottom:["100px","150px"]}},r.createElement(s.zx,{"data-builder-component":"button","data-name":"gift-redeem-button",sx:{width:["100%","fit-content"]},"data-testid":"redeem-button",type:"submit",variant:"buttons.gift.primary",onClick:()=>n("form")},w("gifting_flow.landing.redeem")))))}},36141:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(67294),o=n(65558),i=n(76029),a=n(38032),l=n(78877),s=n(92550),c=n.n(s);var m=e=>{let{name:t,selected:n,selectionMade:i}=e;const a={backgroundColor:n?"blue":"yellow",color:n?"yellow":"blue",p:"6px 10px 6px 14px",position:"absolute",bottom:30,zIndex:1,left:"50%",transform:"translate(-50%, 0) rotate(0deg)",borderRadius:100,alignItems:"center",border:"2px solid",borderColor:n?"yellow":"transparent",animation:i?"none":"3s infinite shake",minWidth:180,"&:hover":{backgroundColor:"blue",color:"yellow",cursor:"pointer","> .label-text":{color:"yellow"},"> .label-circle":{bg:n?"yellow":"blue",borderColor:n?"none":"yellow"}},shakeAnimationKeyframes:{"@keyframes shake":{"0%":{transform:"translate(-50%, 0) rotate(0deg)"},"10%":{transform:"translate(-50%, 0) rotate(3deg)"},"20%":{transform:"translate(-50%, 0) rotate(-3deg)"},"30%":{transform:"translate(-50%, 0) rotate(3deg)"},"50%":{transform:"translate(-50%, 0) rotate(0deg)"},"100%":{transform:"translate(-50%, 0) rotate(0deg)"}}}},s={height:"28px",width:"28px",borderRadius:"50%",display:"iniline-block",ml:"10px",flexShrink:0,border:"2px s
5olid blue",bg:n?"yellow":"transparent"},m={textTransform:"uppercase",lineHeight:"18px",fontSize:"16px",color:n?"yellow":"blue",flexGrow:1,pt:.5};return r.createElement(o.kC,{sx:a},r.createElement(l.Z,{sx:m,className:"label-text"},t),r.createElement(o.xu,{sx:s,className:"label-circle"},r.createElement(c(),{style:{display:n?"inline-block":"none"}})))},d=n(68290);var u=e=>{let{sku:t,slug:n}=e;const{0:o,1:i}=(0,r.useState)(null),a=(0,d.Z)();return(0,r.useEffect)((()=>{let e=null;if(e=n.includes("variety-pack")?a.find((e=>"variety-pack-product"===e.slug)):n.includes("pasta-pack")?a.find((e=>"pasta-pack-product"===e.slug)):a.find((e=>e.variants.find((e=>e.sku===t)))),!e)return;let r=null;const o=e.variants.find((e=>e.sku===t));r=o?o.mainImage:e.overheadProductImage,r&&i(r)}),[t]),{image:o}};var p=e=>{let{imageUrl:t,name:n,optionsText:s,description:c,sku:d,alt:p,onSelection:f,selected:g,selectionMade:x,confirmed:h,sx:w,slug:b}=e;const v=(0,i.qM)(),{0:y,1:E}=(0,r.useState)(!1),{image:k}=u({sku:d,slug:b}),_={flexFlow:"column wrap",justifyContent:"space-between",height:500,padding:["50px 10px 0","50px 20px 10px"],textAlign:"center",...w},S={border:"2px solid",borderColor:g?"#FFDE00":"tertiary",backgroundColor:g?"#2B38BD":"transparent",width:y?180:310,height:y?180:310,objectFit:"cover",margin:"auto",borderRadius:"100%",zIndex:1,transition:"width 0.3s, height 0.3s, border 0.3s, backgroundColor 0.3s","&:hover":{cursor:"pointer"},overflow:"hidden"},C={minHeight:"20px",color:g?"#FFDE00":"tertiary",fontSize:16,fontWeight:400,marginTop:20,"&:hover":{cursor:"pointer"}},Z={position:"absolute",opacity:y?1:0,transition:"opacity 0.3s",top:260,width:310,maxHeight:200,height:"auto",overflow:"auto",fontFamily:"Sofia-Pro",color:"tertiary"},z={color:"secondary",fontSize:16,fontFamily:"heading",fontWeight:700,textDecoration:"underline",mt:y?"1rem":0,"&:hover":{cursor:"pointer"}},j={height:"100%",objectFit:"cover"};return r.createElement(o.kC,{sx:_},r.createElement(o.kC,{sx:{position:"relative",flexFlow:"column wrap",justifyContent:"space-between",width:310,fontFamily:"heading"}},r.createElement(o.kC,{sx:{position:"relative",flexFlow:"column wrap",justifyContent:"space-between"},onClick:()=>null==f?void 0:f(d),"data-testid":`product-handler-${d}`},r.createElement(o.xu,{sx:S},k?r.createElement(a.G,{style:{height:"100%"},imgStyle:j,image:k.gatsbyImageData,alt:k.title}):r.createElement(o.Ee,{src:t,sx:j,alt:p})),r.createElement(o.xu,null,r.createElement(m,{name:n,selected:g,selectionMade:x}),r.createElement(o.xu,{sx:C},s))),r.createElement(o.xu,{sx:Z},r.createElement(l.Z,null,c))),!h&&r.createElement(l.Z,{sx:z,onClick:()=>E((e=>!e))},v(`gifting_flow.selector.${y?"less":"more"}_info`)))}},63108:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(15785),o=n(67294),i=n(35414),a=n(52015),l=n(71082);var s=()=>(0,l.useStaticQuery)("3905785313");var c=e=>{let{description:t,image:n,title:r}=e;const{pathname:o}=(0,a.useLocation)(),{metadata:i,site:l}=s(),c=e=>e?{description:e.description.description,image:e.image.file.url,path:e.path,title:e.title}:{},m=c(i.default),d=c(i.pages.find((e=>e.path===o)));return{metaTitle:("/"===o?"":`${d.title||r||m.title} | `)+l.siteMetadata.title,metaDescription:d.description||t||m.description,metaImage:d.image||n||m.image,metaUrl:`${l.siteMetadata.siteUrl}${"/"===o?"":o}`}};var m=function(e){let{description:t,image:n,lang:a="en",meta:l=[],title:s,noIndex:m=!1}=e;const{metaTitle:d,metaDescription:u,metaImage:p,metaUrl:f}=c({description:t,image:n,title:s});return o.createElement(i.q,{htmlAttributes:{lang:a},title:d,meta:[{name:"title",content:d},{name:"description",content:u},{property:"og:title",content:d},{property:"og:description",content:u},{property:"og:type",content:"website"},{property:"og:image",content:`https:${p}`},{property:"og:url",content:f},{name:"twitter:card",content:"summary"},{name:"twitter:title",content:d},{name:"twitter:description",content:u},{name:"twitter:url",content:f}].concat((0,r.Z)(m?[{name:"robots",content:"noindex, nofollow"}]:[])).concat(l),link:[{rel:"icon",href:"/GoodlesFavicon.png"}]})}},68290:function(e,t,n){"use strict";var r=n(15785),o=n(71082);t.Z=()=>(0,o.useStaticQuery)("3666371757").contentfulCatalog.collections.reduce(((e,t)=>t.products?[].concat((0,r.Z)(e),(0,r.Z)(t.products)):e),[])},96550:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(26539),o=n.n(r);const i="https://goodles-gifting.herokuapp.com/api",a=i.endsWith("/")?i.slice(0,-1):i,l=async e=>{try{return(await o().get(`${a}/gift/${e}`)).data}catch(t){return console.error("Axios Error:",t),t.response}}},16529:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(15785),o=n(26539),i=n.n(o);const a="https://gooder.assembly-api.com",l=a.endsWith("/")?a.slice(0,-1):a,s=async function(e,t){void 0===e&&(e=null),void 0===t&&(t=25);try{const n=e?`countries/${e}/states`:"states",o=[];let a;const s=async e=>e?(await i().get(`${l}/api/${n}`,{params:{per_page:t,page:e}}).then((t=>{a=e<=t.data.pages?e+1:null,o.push.apply(o,(0,r.Z)(t.data.states))})),s(a)):o;return s(1)}catch(n){return console.error("Axios Error:",n),new Error(n)}}},26878:function(e,t,n){var r,o,i;"undefined"!=typeof window?window:n.g,o=[],void 0===(i="function"==typeof(r=function(){var e=function(t,n){"use strict";var r=Object.create(e.prototype),o=0,i=0,a=0,l=0,s=[],c=!0,m=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)},d=null,u=!1;try{var p=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassive",null,p),window.removeEventListener("testPassive",null,p)}catch(j){}var f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||clearTimeout,g=window.transformProp||function(){var e=document.createElement("div");if(null===e.style.transform){var t=["Webkit","Moz","ms"];for(var n in t)if(void 0!==e.style[t[n]+"Transform"])return t[n]+"Transform"}return"transform"}();function x(){if(3===r.options.breakpoints.length&&Array.isArray(r.options.breakpoints)){var e,t=!0,n=!0;
5if(r.options.breakpoints.forEach((function(r){"number"!=typeof r&&(n=!1),null!==e&&r<e&&(t=!1),e=r})),t&&n)return}r.options.breakpoints=[576,768,1201],console.warn("Rellax: You must pass an array of 3 numbers in ascending order to the breakpoints option. Defaults reverted")}r.options={speed:-2,verticalSpeed:null,horizontalSpeed:null,breakpoints:[576,768,1201],center:!1,wrapper:null,relativeToWrapper:!1,round:!0,vertical:!0,horizontal:!1,verticalScrollAxis:"y",horizontalScrollAxis:"x",callback:function(){}},n&&Object.keys(n).forEach((function(e){r.options[e]=n[e]})),n&&n.breakpoints&&x(),t||(t=".rellax");var h="string"==typeof t?document.querySelectorAll(t):[t];if(h.length>0){if(r.elems=h,r.options.wrapper&&!r.options.wrapper.nodeType){var w=document.querySelector(r.options.wrapper);if(!w)return void console.warn("Rellax: The wrapper you're trying to use doesn't exist.");r.options.wrapper=w}var b,v=function(e){var t=r.options.breakpoints;return e<t[0]?"xs":e>=t[0]&&e<t[1]?"sm":e>=t[1]&&e<t[2]?"md":"lg"},y=function(){for(var e=0;e<r.elems.length;e++){var t=k(r.elems[e]);s.push(t)}},E=function(){for(var e=0;e<s.length;e++)r.elems[e].style.cssText=s[e].style;s=[],i=window.innerHeight,l=window.innerWidth,b=v(l),_(),y(),z(),c&&(window.addEventListener("resize",E),c=!1,Z())},k=function(e){var t,n=e.getAttribute("data-rellax-percentage"),o=e.getAttribute("data-rellax-speed"),a=e.getAttribute("data-rellax-xs-speed"),s=e.getAttribute("data-rellax-mobile-speed"),c=e.getAttribute("data-rellax-tablet-speed"),m=e.getAttribute("data-rellax-desktop-speed"),d=e.getAttribute("data-rellax-vertical-speed"),u=e.getAttribute("data-rellax-horizontal-speed"),p=e.getAttribute("data-rellax-vertical-scroll-axis"),f=e.getAttribute("data-rellax-horizontal-scroll-axis"),g=e.getAttribute("data-rellax-zindex")||0,x=e.getAttribute("data-rellax-min"),h=e.getAttribute("data-rellax-max"),w=e.getAttribute("data-rellax-min-x"),v=e.getAttribute("data-rellax-max-x"),y=e.getAttribute("data-rellax-min-y"),E=e.getAttribute("data-rellax-max-y"),k=!0;a||s||c||m?t={xs:a,sm:s,md:c,lg:m}:k=!1;var _=r.options.wrapper?r.options.wrapper.scrollTop:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;r.options.relativeToWrapper&&(_=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)-r.options.wrapper.offsetTop);var C=r.options.vertical&&(n||r.options.center)?_:0,Z=r.options.horizontal&&(n||r.options.center)?r.options.wrapper?r.options.wrapper.scrollLeft:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:0,z=C+e.getBoundingClientRect().top,j=e.clientHeight||e.offsetHeight||e.scrollHeight,F=Z+e.getBoundingClientRect().left,L=e.clientWidth||e.offsetWidth||e.scrollWidth,A=n||(C-z+i)/(j+i),T=n||(Z-F+l)/(L+l);r.options.center&&(T=.5,A=.5);var W=k&&null!==t[b]?Number(t[b]):o||r.options.speed,I=d||r.options.verticalSpeed,O=u||r.options.horizontalSpeed,P=p||r.options.verticalScrollAxis,D=f||r.options.horizontalScrollAxis,R=S(T,A,W,I,O),M=e.style.cssText,q="",$=/transform\s*:/i.exec(M);if($){var B=$.index,N=M.slice(B),H=N.indexOf(";");q=H?" "+N.slice(11,H).replace(/\s/g,""):" "+N.slice(11).replace(/\s/g,"")}return{baseX:R.x,baseY:R.y,top:z,left:F,height:j,width:L,speed:W,verticalSpeed:I,horizontalSpeed:O,verticalScrollAxis:P,horizontalScrollAxis:D,style:M,transform:q,zindex:g,min:x,max:h,minX:w,maxX:v,minY:y,maxY:E}},_=function(){var e=o,t=a;if(o=r.options.wrapper?r.options.wrapper.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,a=r.options.wrapper?r.options.wrapper.scrollLeft:(document.documentElement||document.body.parentNode||document.body).scrollLeft||window.pageXOffset,r.options.relativeToWrapper){var n=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset;o=n-r.options.wrapper.offsetTop}return!(e==o||!r.options.vertical)||!(t==a||!r.options.horizontal)},S=function(e,t,n,o,i){var a={},l=(i||n)*(100*(1-e)),s=(o||n)*(100*(1-t));return a.x=r.options.round?Math.round(l):Math.round(100*l)/100,a.y=r.options.round?Math.round(s):Math.round(100*s)/100,a},C=function(){window.removeEventListener("resize",C),window.removeEventListener("orientationchange",C),(r.options.wrapper?r.options.wrapper:window).removeEventListener("scroll",C),(r.options.wrapper?r.options.wrapper:document).removeEventListener("touchmove",C),d=m(Z)},Z=function(){_()&&!1===c?(z(),d=m(Z)):(d=null,window.addEventListener("resize",C),window.addEventListener("orientationchange",C),(r.options.wrapper?r.options.wrapper:window).addEventListener("scroll",C,!!u&&{passive:!0}),(r.options.wrapper?r.options.wrapper:document).addEventListener("touchmove",C,!!u&&{passive:!0}))},z=function(){for(var e,t=0;t<r.elems.length;t++){var n=s[t].verticalScrollAxis.toLowerCase(),c=s[t].horizontalScrollAxis.toLowerCase(),m=-1!=n.indexOf("x")?o:0,d=-1!=n.indexOf("y")?o:0,u=-1!=c.indexOf("x")?a:0,p=(d+(-1!=c.indexOf("y")?a:0)-s[t].top+i)/(s[t].height+i),f=(m+u-s[t].left+l)/(s[t].width+l),x=(e=S(f,p,s[t].speed,s[t].verticalSpeed,s[t].horizontalSpeed)).y-s[t].baseY,h=e.x-s[t].baseX;null!==s[t].min&&(r.options.vertical&&!r.options.horizontal&&(x=x<=s[t].min?s[t].min:x),r.options.horizontal&&!r.options.vertical&&(h=h<=s[t].min?s[t].min:h)),null!=s[t].minY&&(x=x<=s[t].minY?s[t].minY:x),null!=s[t].minX&&(h=h<=s[t].minX?s[t].minX:h),null!==s[t].max&&(r.options.vertical&&!r.options.horizontal&&(x=x>=s[t].max?s[t].max:x),r.options.horizontal&&!r.options.vertical&&(h=h>=s[t].max?s[t].max:h)),null!=s[t].maxY&&(x=x>=s[t].maxY?s[t].maxY:x),null!=s[t].maxX&&(h=h>=s[t].maxX?s[t].maxX:h);var w=s[t].zindex,b="translate3d("+(r.options.horizontal?h:"0")+"px,"+(r.options.vertical?x:"0")+"px,"+w+"px) "+s[t].transform;r.elems[t].style[g]=b}r.options.callback(e)};return r.destroy=function(){for(var e=0;e<r.elems.length;e++)r.elems[e].style.cssText=s[e].style;c||(window.removeEventListener("resize",E),c=!0),f(d),d=null},E(),r.refresh=E,r}console.warn("Rellax: The elements you're trying to select don't exist.")};return e})?r.apply(t,o):r)||(e.exports=i)},92550:function(e,t,n){var r=n(67294);function o(e){return r.createElement("svg",e,r.createElement("path",{d:"M8.91792 1.8637L3.94986 7.38104L1.19109 4.89725",stroke:"#2B38BD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))}o.defaultProps={width:"10",height:"9",viewBox:"0 0 10 9",fill:"none"},e.exports=o,o.default=o}}]); 6//# sourceMappingURL=03036d1b6a0a0f17bd391341a9b717484b1af59c-397503c1ee046bc64815.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.